Bash Script Ques

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


Looks like 'ls -1 myfile* 2> /dev/null' is the simpliest one-line 
solution to determine if one or more files matching the pattern exist 
(without throwing a nuisance error message).

Thanks to everyone who replied.

Michael Hipp
(Former Microsoft supporter and Caldera user and not proud of either :-)



More information about the Linux-users mailing list