At least once a week, I find myself wishing I could sort two files and compare them in one shot, from the commandline, without creating intermediate files. Today I’m glad to say I found my answer.
Here are two examples:
See this wikipedia entry for a comparison of the diff
and comm
commands.