view bin/uniqs @ 8695:b09f2c5c49dd

<oerjan> ` chmod +x she*; mv she* bin
author HackBot
date Tue, 05 Jul 2016 01:20:24 +0000
parents 9bf80fcf858b
children
line wrap: on
line source

#!/usr/bin/python
s=set()
try:
 while True:
  l=raw_input()
  if l not in s:
   s.add(l)
   print(l)
except EOFError:
 pass