annotate bin/CaT @ 3911:8c112ffd5765

<kmc> addquote zzo38 [~zzo38@24-207-49-17.eastlink.ca] has quit [Quit: I need the stats for the small leech, not the big one. So, if you write it on here while I am gone then when I return I will check.]
author HackBot
date Tue, 15 Oct 2013 22:19:50 +0000
parents d9ab4c1c05dd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2351
cedbde4c8d40 <oerjan> (echo \'#!/usr/bin/env python\'; echo \'print (lambda s: "".join([(s[i].upper() if i%2==0 else s[i].lower()) for i in range(len(s)) ]))(open("/dev/stdin").read())\') >bin/CaT; chmod a+x CaT
HackBot
parents:
diff changeset
1 #!/usr/bin/env python
3868
5909a6756b89 <oerjan> sed -i -e \'1aimport sys\' -e \'s/print/sys.write/\' bin/CaT #Let\'s see how much i messed this up
HackBot
parents: 2351
diff changeset
2 import sys
3870
d9ab4c1c05dd <oerjan> sed -i \'s/write /write (/;s/read(/read()/\' bin/CaT
HackBot
parents: 3869
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()))