Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (14 sloc)
383 Bytes
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/env python | |
import sys | |
def main(): | |
if len(sys.argv) != 2: | |
print 'Usage: %s <input-file>' % sys.argv[0] | |
sys.exit(-1) | |
with open(sys.argv[1]) as f: | |
unified_set = set([]) | |
for line in f.readlines(): | |
unified_set.add(line.strip()) | |
for item in unified_set: | |
print item | |
if __name__ == '__main__': | |
main() |