Created
May 20, 2017 23:00
-
-
Save tterb/c594c67030892e5498d1e63c9759b850 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
#!/usr/bin/python | |
# Returns the common lines between each of the 'n' specified files | |
python -c 'import sys;print " ".join(sorted(set.intersection(*[set(open(a).readl | |
ines()) for a in sys.argv[1:]])))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment