Created
November 6, 2016 01:24
-
-
Save joonan30/227bde4bdd3d21c8899ab6c4989c3add to your computer and use it in GitHub Desktop.
# remove redundant lines and sort lines
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
| import sys | |
| match = [] | |
| with open(sys.argv[1]) as fh: | |
| for line in fh: | |
| if line in match: | |
| pass | |
| else: | |
| match.append(pass) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment