Useful linux shell scripts compilation for Server Admins
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment