Question on diff command
Based on my experimentation on the diff command, the contents in two files need not be in alphabetical order.
As long as a similar entry is found in the two file, the output of diff command will not show anything.
However, but i;m not so convinced of my conclusion, because, when i did a diff on two files for my inventory record (one is we do a manual record and the other is captured by the server).
The diff output shows "<" and ">" for a similar entry. Not sure whether i need to sort the two files first before i do a diff .
Thanks for any advise .