view bin/dfi @ 686:5ebfac7426e5

Use screen terminal by default until everything is updated tmux-256color doesn't exist on older debians.
author nanaya <me@nanaya.pro>
date Thu, 15 Sep 2022 03:00:38 +0900
parents 006c273399fb
children
line wrap: on
line source

#!/usr/bin/env python

import os
import sys

rows = sys.stdin.readlines()

for row in rows:
  if row.find(' ', 1, 49) == -1:
    row = row[0:48] + ' ' + row[48:]
  data = row.split(None, 5)
  print '|'.join(data)