if [ $# -ne 2 ]
then
echo " invalid argument "
fi
if [ ! -f $1 ]
then
echo "file $1 is not exist "
fi
if [ ! -f $2 ]
then
echo " file $2 is not exist "
fi
if cmp $1 $2 >> \dev\null
then
echo " The files are same"
tac $1 > $2
rev $2 > $1
rm $2
echo The content of file $1 is :
cat $1
else
echo " The files are not identical "
fi