Bash Script Ques

Michael Hipp Michael
Mon May 17 11:48:11 PDT 2004


Hello, first post (in a long time) ...

I thought to do something like:

if [ -f myfile* ]; then
    # do something
fi

That's to find if there are one or more like myfile001, myfile002, but 
it reports an error "too many arguments" if there is more than one. Any 
simple/elegant way to do this?

Thanks,
Michael



More information about the Linux-users mailing list