Hi,
the following ksh script is supposed to detect a file name with 'security' but it doesn't.
file=security.040401.txt
if [[ $file == '*security*' ]]; then
print "detected security file"
else
print "Didn't detect security file"
fi
I tried with all of these regular expressions and also with "" instead of '' but none of them works: 'security', 'security*', '*security'
Help????
Thanks,
Shine.
the following ksh script is supposed to detect a file name with 'security' but it doesn't.
file=security.040401.txt
if [[ $file == '*security*' ]]; then
print "detected security file"
else
print "Didn't detect security file"
fi
I tried with all of these regular expressions and also with "" instead of '' but none of them works: 'security', 'security*', '*security'
Help????
Thanks,
Shine.