in reply to How to concatenate the contents of two files?
Here is a strictly-Perl one-liner solution that works quite nicely.
First, the unix/linux version:
perl -ne 'BEGIN{open FH,">>", shift @ARGV or die $!} print FH $_;' A.t +xt B.txt
And now the Windows version:
perl -ne "BEGIN{open FH,'>>', shift @ARGV or die $!} print FH $_;" A.t +xt B.txt
The only difference is which quotes are used where, since Win32/DOS doesn't like single quotes much.
This works as follows:
Hope this helps!
Dave
|
|---|