grep -Fx -f file1 file2
intersection between two files | commandlinefu.com
I just re-discovered this and don’t want to forget, so it’s a rather simple example, but still really useful! Gotta browse for some good snippets later.
1 year ago