File Management programming in Linux
echo "1: Create File";
echo "2: Concate File";
echo "3: Copy File";
while ((1))
do
echo "Select The Above Option:->";
read c
case $c in
1)
echo "Enter The File Name:->";
read fname
cat>$fname
echo "File Create Successfull";
;;
2)
echo "Enter The First File Name:->";
read f1
echo "Enter The Second File Name:->";
read f2
echo "Enter Your Concate File Name:->";
read con
cat $f1 $f2>$con
echo "File Concate Successfull";
;;
3)
echo "Enter File Name For Copy:->";
read fname;
echo "Enter File Name For Past:->";
read pname
cp $fname $pname;
echo "File Copied Successfull";
;;
*) echo "Select The Valid Option";
;;
esac
done
File Management programming in Linux
Reviewed by Unknown
on
22:09
Rating:
No comments: