in reply to How to concatenate the contents of two files?
This little script will take any number of files given on the command line and concatenate them into the first file given on the command line:
Command Line Version:my $outfile = shift; open OUT,">".$outfile or die "Could not open $outfile:$!\n"; print OUT $_ while <>;
perl -e 'open OUT,">".shift;print OUT <>' output *.txt
In Section
Seekers of Perl Wisdom