echo "Enter file name:"
read fname

if [ -e $fname ]
then
	echo "File is exist"
else
	echo "File is not exist"
fi

1 Comment

Leave a Reply to Unix shell script from basic to advance – AppXwinD Technology Cancel reply

Your email address will not be published. Required fields are marked *