Created
March 23, 2014 22:34
-
-
Save fijimunkii/9730893 to your computer and use it in GitHub Desktop.
sh: diff alternatives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
comm -13 <(sort file1) <(sort file2) > file3 | |
grep -Fxvf file1 file2 > file3 | |
diff file1 file2 | grep "<" | sed 's/^<//g' > file3 | |
join -v 2 <(sort file1) <(sort file2) > file3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment