# HG changeset patch # User HackBot # Date 1437215133 0 # Node ID b7c3d318e0e6f7166677dc85e5acd4023db5b44a # Parent 3037859ed9fe046f841fb2f6bb3dd1130735e7d3 ` echo $\'#!python\\ns=set()\\ntry:\\n while True:\\n l=raw_input()\\n if l not in s:\\n s.add(l)\\n print(l)\\nexcept IOError:\\n pass\' > bin/uniqs && chmod +x bin/uniqs diff -r 3037859ed9fe -r b7c3d318e0e6 bin/uniqs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/uniqs Sat Jul 18 10:25:33 2015 +0000 @@ -0,0 +1,10 @@ +#!python +s=set() +try: + while True: + l=raw_input() + if l not in s: + s.add(l) + print(l) +except IOError: + pass