summaryrefslogtreecommitdiff
path: root/paste_pairs
blob: 07c1f225b7e74d395152b55c016e6515abc593b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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