The cat command works nicely:
cat *someglob* > output.txt
It's name (short for concatenate) even gives away its purpose.
OR
I'm sure cat is faster, and simpler, but here's a perl version, just
because you asked about it.
perl -we '@ARGV = glob("@ARGV"); print while (<>);' *.txt > all.csv
cat *someglob* > output.txt
It's name (short for concatenate) even gives away its purpose.
OR
I'm sure cat is faster, and simpler, but here's a perl version, just
because you asked about it.
perl -we '@ARGV = glob("@ARGV"); print while (<>);' *.txt > all.csv
No comments:
Post a Comment