Excellent!
#in file 1 but not in file 2
diff --changed-group-format='%<' --unchanged-group-format='' file1 file2 > output
#in file 2 but not in file 1
diff --changed-group-format='%>' --unchanged-group-format='' file1 file2 > output
#Common in both files
diff --changed-group-format='' --unchanged-group-format='%=' file1 file2 > output
From -> linux questions
No comments:
Post a Comment