25 Jun
2000
25 Jun
'00
20:48
Hi, On Sun, Jun 25 2000 at 09:45 -0700, S.Toms wrote:
Actually, I'm looking for a way to check the filename, not the file contents, for example, I have the following being passed into the script /home/skull/mail/Mailing Lists/SuSE List
and I want to check to see if there is a "SuSE List.lock" within that above string, I've tried the following which doesn't seem to work
if [ "$FILE" != "*.lock" ]; then
if echo "$FILE" |egrep -q "\.lock$"; then do_something fi hould do the trick. Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/