Skip to content

Instantly share code, notes, and snippets.

@joonan30
Created November 6, 2016 01:24
Show Gist options
  • Select an option

  • Save joonan30/227bde4bdd3d21c8899ab6c4989c3add to your computer and use it in GitHub Desktop.

Select an option

Save joonan30/227bde4bdd3d21c8899ab6c4989c3add to your computer and use it in GitHub Desktop.
# remove redundant lines and sort lines
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