summaryrefslogtreecommitdiff
path: root/paste_pairs
blob: f6b8b31e2fd3da8657ce44eb7477d7a4adbd0746 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/python

import sys
from itertools import izip

for linenr, (src_line, tgt_line) in enumerate(izip(open(sys.argv[1]), open(sys.argv[2]))):
  print linenr, (src_line.strip())
  print linenr, (tgt_line.strip())
  print