Sunday, February 1, 2015

Check if directory exists using bash or linux shell script

if [ -d directory_path ]
then
   echo "dir exists"
else
   echo "dir does not exists"
fi

No comments:

Post a Comment