Friday, June 1, 2012

Bash: Check for File / Directory Existance

File:
if [ -f $FILE ]


Directory:
if [ -d $DIR ]

No comments:

Post a Comment