http://qs321.pair.com?node_id=548599


in reply to parallel reading

JAPH(just another perl approach),hehe:
perl -e 'map{chomp;$a[$i<3?$i:($i=0)].=$_;$i++}<>;print"@a\n";' filea +fileb filec
assumption that each file has the same number of lines, here line=3 for ease