What I'm looking for is something like:
if [ -f "filenam*" ]; then
...
fi
But the wildcard (*) causes problems.
I've also tried:
if [ `ls filenam* > /dev/null 2>&1` ]; then
...
fi
Which may work in other shells but doesn't appear to work in Bourne shell (sh).
Thanks for any help!
EDIT: Sorry, not C shell, Bourne shell (sh).