view bin/uniqs @ 9214:3673d50ef8f1

<oerjan> ` sed -i \'s/hg log/hlnp/\' bin/hoag
author HackBot
date Mon, 10 Oct 2016 22:45:04 +0000
parents c989a1669243
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