Mercurial > ec-dotfiles
comparison bin/dfi @ 277:006c273399fb
Something.
| author | Edho Arief <edho@myconan.net> |
|---|---|
| date | Thu, 08 Dec 2011 15:22:00 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 276:8096bb665d4a | 277:006c273399fb |
|---|---|
| 1 #!/usr/bin/env python | |
| 2 | |
| 3 import os | |
| 4 import sys | |
| 5 | |
| 6 rows = sys.stdin.readlines() | |
| 7 | |
| 8 for row in rows: | |
| 9 if row.find(' ', 1, 49) == -1: | |
| 10 row = row[0:48] + ' ' + row[48:] | |
| 11 data = row.split(None, 5) | |
| 12 print '|'.join(data) | |
| 13 |
