http://www.perlmonks.org?node_id=328886


in reply to File Copy/Merge Question

This one liner will do it. If you have 5.8.1 or later, it is also safe to use on binary files on win32.

perl -C3 -pe1 file1 file2 file3 > all

And it's a lot easier to type than copy file1/b + file2/b + file3/b all/b which is the native command for this.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!