Techno World Inc - The Best Technical Encyclopedia Online!

THE TECHNO CLUB [ TECHNOWORLDINC.COM ] => Shell Script => Topic started by: Mark David on March 16, 2007, 01:37:13 PM



Title: Determine if file exists in a Bourne/bash shell script
Post by: Mark David on March 16, 2007, 01:37:13 PM
Determine if file exists in a Bourne/bash shell script

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