Compare dois arquivos script de shell
if cmp -s "file1" "file2"
then
echo "The files match"
else
echo "The files are different"
fi
Deska
if cmp -s "file1" "file2"
then
echo "The files match"
else
echo "The files are different"
fi