W.A.S.S to compare that given two files are same or not. If found same then delete the second file.
echo -e "Enter the 1st File name : \c"
echo -e "Enter the 2nd File name : \c"
res=`cmp $ffname $sfname|wc -l`
//cmp is used for comparing two files and return where those are different
if [ $res -eq 1 ]
echo "Both files are not same"
echo "Both files are same"
Enter the 1st File name : t1.txt
Enter the 2nd File name : t2.txt
Both files are same