Skip to main content
6 events
when toggle format what by license comment
Jun 21, 2013 at 9:42 comment added Stéphane Chazelas Improvement: grep -oFf file1.txt file2.txt | sort file1.txt - | uniq -u
Jun 20, 2013 at 19:25 vote accept Edward Shtern
Jun 20, 2013 at 18:16 comment added iruvar @rici, that is a very good point
Jun 20, 2013 at 18:12 comment added rici You could achieve the same effect without the grep trickiness: sort file1.txt <(grep -of file1.txt file2.txt) | uniq -u, but, like your solution, this only works when the pattern file doesn't actually contain any regex metacharacters.
Jun 20, 2013 at 17:57 comment added unxnut Very good description. Thanks and +1.
Jun 20, 2013 at 17:43 history answered iruvar CC BY-SA 3.0