annotate bin/dfi @ 400:657f787fbae8

Merge remote-tracking branch 'origin/master'
author Edho Arief <edho@myconan.net>
date Tue, 04 Sep 2012 10:23:37 +0700
parents 006c273399fb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
277
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 #!/usr/bin/env python
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3 import os
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 import sys
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 rows = sys.stdin.readlines()
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 for row in rows:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
9 if row.find(' ', 1, 49) == -1:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 row = row[0:48] + ' ' + row[48:]
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 data = row.split(None, 5)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
12 print '|'.join(data)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
13