[KLUG Members] Shell Scripting
Darrel Clute
members@kalamazoolinux.org
Mon, 21 Jul 2003 12:34:17 -0700 (PDT)
Hi All!
I am trying to write a shell script that will test for
the existance of a file with a specific extension.
For example:
if [ -f /home/darrel/*.jpg ]; then
do stuff here...
fi
It works great if I have it look for a specific file,
but will not work with any type of quoting fir the *.
I've also tried the 'test' command, but it doesn't
like multiple files either.
Any suggestions or hints as to where to go from here?
Thanks,
Darrel