Skip to content

Instantly share code, notes, and snippets.

@mwalling
Created May 18, 2009 18:29
Show Gist options
  • Save mwalling/113659 to your computer and use it in GitHub Desktop.
Save mwalling/113659 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
for line in sys.stdin:
if len(line) < 2:
sys.stdout.write(line)
else:
if line[0] == '0': sys.stdout.write('\n')
elif line[1] == '1': sys.stdout.write('\f')
sys.stdout.write(line[1:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment