From db6a6ecfa350cae29739c59df1210d8f76a479c9 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Thu, 5 Dec 2013 07:56:38 +0100 Subject: init --- paste_pairs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 paste_pairs (limited to 'paste_pairs') diff --git a/paste_pairs b/paste_pairs new file mode 100755 index 0000000..6ede8f6 --- /dev/null +++ b/paste_pairs @@ -0,0 +1,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 + -- cgit v1.2.3