Comparez le script de shell de deux fichiers

if cmp -s "file1" "file2"
then
   echo "The files match"
else
   echo "The files are different"
fi
Deska