[sword-devel] The poor man's interlinear

Sebastien Koechlin seb.sword at koocotte.org
Fri Sep 7 00:59:15 MST 2012


On Fri, Sep 07, 2012 at 12:34:56AM -0700, David Haslam wrote:
> /One my friends recently asked:/
> 
> Do you know of any program that will load two text files (plain text or Word
> files) and display them interlinearly?
> 
> /Here's my reply:/
> 
> Not off hand, but here's an easy workaround using Excel.

Excel does not handle more than 65000 lines. May be Libreoffice have a
higher limit.

You can merge two file on the command line using for example Perl:

(put it on a single line)

perl -e 'open A,$ARGV[0]; open B,$ARGV[1]; while( <A> ) { print $_; print
"".<B>; }; print <B>;' file_a.txt file_b.txt > merge.txt

You can add a empty line between each:

perl -e 'open A,$ARGV[0]; open B,$ARGV[1]; while( <A> ) { print $_; print
"".<B>; print "\n"; }; print <B>;' file_a.txt file_b.txt > merge.txt


-- 
Seb, autocuiseur



More information about the sword-devel mailing list