Pages

Tuesday, March 19, 2013

Write a script to delete the given file?


$vi delete.sh
echo “enter filename:”
read fname
if rm $fname
then
echo “deleted the file”
else
echo “file is not existed “
fi
:wq

No comments:

Post a Comment