Determine if file exists in a Bourne/bash shell script

Contributor Icon Contributed by Rex Date Icon October 20, 2003  
Tag Icon Tagged: Bourne shell scripting


if [ -f testfile ]
then
echo testfile exists!
fi

Previous recipe | Next recipe |
 

Viewing 4 Comments

 
close Reblog this comment
blog comments powered by Disqus