-
-
Save Hiteshm01/20c3de8c4ac66844d281 to your computer and use it in GitHub Desktop.
Union Intersection and difference
This file contains hidden or 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
cat a b | sort | uniq > c # c is a union b | |
cat a b | sort | uniq -d > c # c is a intersect b | |
cat a b b | sort | uniq -u > c # c is set difference a - b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment