in reply to comparing 2 files problem

$ sort <file1 >file1.tmp $ sort <file2 >file2.tmp $ diff -q file1.tmp file2.tmp