(a) Write an interactive file handling shell program. Let it offer the user the choice of copying ,removing ,renaming or linking files. Once the use has made a choice, have the program ask the user for necessary information, such as the file name ,new name and so on.
(b) Write a shell script that takes a login name as command –line argument and reports when that person logs in
(c) Write a shell script which receives two files names as arguments. It should check whether the two file contents are same or not. If they are same then second file should be deleted.
echo "Enter I File Name:"
echo "Enter II File Name:"
d=`cmp $f1 $f2`
if [ $d -eq $d2 ]
echo "Two Files are similar and $f2 is deleted"
echo "Two Files differ each other"