View Single Post
Old 03-30-2005, 12:17 AM  
Zester
Confirmed User
 
Zester's Avatar
 
Industry Role:
Join Date: Jul 2003
Posts: 5,344
Quote:
Originally Posted by darksoul
if [ -e "file.txt" ]; then
echo "Wow its there";
fi

thanks.
now I'm going to use the "ls" command anyway for something else.
is there a way to suppress the error message: "No such file or directory"
if there really is no such file or directory ?
__________________
* Mainstream ? $65 per sale
* new male contraception
Zester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote