view bin/distort @ 8605:ffc738604527

<gamemanj> ` echo " pipe" > .tmp-clipper-instruction-trace
author HackBot
date Sat, 25 Jun 2016 16:58:16 +0000
parents 6576966b7d24
children 437b86c5c2da
line wrap: on
line source

#!/usr/bin/env python
import sys
N=330
name = sys.argv[1] if len(sys.argv) > 1 else "/dev/stdin"
with open(name, "r") as f:
  data = f.read().replace("\n", " \\ ")
for i in xrange(0, len(data), N):
  print data[i:i+N]