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