Write a shell script to check whether 2 files are same or not. if the files are same the 2nd file should be deleted from directory
echo “enter
the file 1”
read a
echo “enter
the file 2”
read b
if cmp -s
“$a” “$b”
then
echo “match”
rm $b
else
echo “not
match”
fi
Post a Comment
If you have any doubts, Please let me know
Thanks!