Sunday, February 1, 2015

Check if file exists using bash or linux shell script


if [ -f file_path_name.ext ]
then
   echo "file exists"
else
   echo "file does not exists"
fi

No comments:

Post a Comment