Mercurial > repo
annotate bin/cAt @ 8499:f4b6c9a0de78
<izabera> ` rm bin/tac and fuck you
author | HackBot |
---|---|
date | Thu, 16 Jun 2016 09:47:15 +0000 |
parents | a5d6333f9e41 |
children |
rev | line source |
---|---|
5330
a5d6333f9e41
<int-e> ` sed \'s/==/!=/\' < bin/CaT > bin/cAt; sed \'s/CaT/cAt/\' < bin/WeLcOmE > bin/wElCoMe; chmod +x bin/cAt bin/wElCoMe
HackBot
parents:
diff
changeset
|
1 #!/usr/bin/env python |
a5d6333f9e41
<int-e> ` sed \'s/==/!=/\' < bin/CaT > bin/cAt; sed \'s/CaT/cAt/\' < bin/WeLcOmE > bin/wElCoMe; chmod +x bin/cAt bin/wElCoMe
HackBot
parents:
diff
changeset
|
2 import sys |
a5d6333f9e41
<int-e> ` sed \'s/==/!=/\' < bin/CaT > bin/cAt; sed \'s/CaT/cAt/\' < bin/WeLcOmE > bin/wElCoMe; chmod +x bin/cAt bin/wElCoMe
HackBot
parents:
diff
changeset
|
3 sys.stdout.write ((lambda s: "".join([(s[i].upper() if i%2!=0 else s[i].lower()) for i in range(len(s)) ]))(open("/dev/stdin").read())) |