Created
December 5, 2018 23:23
-
-
Save gwpl/0bf0d8f9aa9385207d3636d130739f10 to your computer and use it in GitHub Desktop.
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
#cli #linux #snippet | |
# find lines only in file1 | |
comm -23 file1 file2 | |
# find lines only in file2 | |
comm -13 file1 file2 | |
# find lines common to both files | |
comm -12 file1 file2 | |
https://stackoverflow.com/a/26619069/544721 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment