I have a small question about the diff command. I am comparing two ascii files to check if there's a difference between them and print out the output to another ascii. However my problem is that the order of the contents of the files shouldn't matter, for example let's say we have:
file1.txt with
1
2
3
4
5
6
7
file2.txt with
1
3
2
4
so that when i do a "diff" on them the output should just be:
5
6
7
i.e the order of the two files shouldn't matter, it should just print out the whatever it is that is different between the two files.