write a menu driven script to list a file , copy a file, rename a file.
echo
"enter 1 for list the file"
echo
"enter 2 for copy the file"
echo
"enter 3 for rename the file"
read
a
case
$a in
1)
ls
-l
;;
2)
echo
"enter the your file"
read
fil1
echo
"enter the new file for copying the data"
read
fil2
cp
$fil1 $fil2
;;
3)
echo
"enter the file for rename"
read
r1
echo
"enter the new name for file"
read
r2
mv
$r1 $r2
;;
Esac
Post a Comment
If you have any doubts, Please let me know
Thanks!