view bin/CaT @ 4207:eebc82a0937e

<olsner> echo \'allquotes | grep "$1" | shuf | head -n 1\' > bin/quoth
author HackBot
date Thu, 19 Dec 2013 21:11:33 +0000
parents d9ab4c1c05dd
children
line wrap: on
line source

#!/usr/bin/env python
import sys
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()))