|
how to check if masked directory exists?
I'm trying to write a script that identifies whether a directory of the form AWL.????????.IP exists. I have one that exists which is AWL.05301032.IP.
When I test like this: If [[ -d AWL.05301032.IP ]]
I get true, but when I test like this:
If [[ -d AWL.????????.IP ]]
Or like this
If [[ -d AWL.*.IP ]]
Or any other variation of wild cards, I get false.
Is there a way for me to check for the presence of a directory that uses a mask?
Thanks for any help that can be provided!
Phil Plasma
|