What command can be used to check if directories starting with a particular pattern exists or not, within shell script ?
For example :
In HOME path if there are many directories starting with ABCD_* and i want to check if there are any directories staring with pattern- ABCD_* exist or not using a command.
If (any directory matching this pattern exist) then echo found else echo not found fi