# this will print if they're identical or not diff file1 file2 -s
if cmp -s "file1" "file2" then echo "The files match" else echo "The files are different" fi