[K12OSN] OT: bash help
ascensiontech at gmail.com
Sat Mar 8 17:01:13 UTC 2008
I'm trying to test if vpopmail users have a spam folder already, but
I'd like to make the directory test case insensitive.
if [ ! -d "/home/vpopmail/domains/domain.com/$name/Maildir/.[Ss][Pp][Aa][Mm]" ];
echo not there
This way the test fails even if there is a .spam folder.
Without the quotes the regex is interpreted but when the directory is
there, I get a 'binary operator expected' error for the 'if' line.
What am I not getting?
More information about the K12OSN