#This scripts find one file in current directory and changes its name
if [ -f $1 ]
then
mv $1 $2
echo "File name has been changed,Lets open same file with new name"
cat $2
else
echo "File does not exist"
fi
Please comment if you find the above post interesting or if you find any mistakes.
if [ -f $1 ]
then
mv $1 $2
echo "File name has been changed,Lets open same file with new name"
cat $2
else
echo "File does not exist"
fi
Please comment if you find the above post interesting or if you find any mistakes.
No comments:
Post a Comment