in reply to How to concatenate the contents of two files?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to concatenate the contents of two files?
by Aristotle (Chancellor) on Sep 02, 2004 at 20:31 UTC | |
by terra incognita (Pilgrim) on Sep 02, 2004 at 20:39 UTC |