Header Ads

Shell program to check whether a file exists in a directory or not

 
!/bin/bash
if [ -f $1  ]
then echo " $1 File exist "
else
echo " File does not exist "
fi




No comments

Powered by Blogger.