in reply to appending files
A one-liner
perl -ne"print qx[perl -pe1 $_]" test.lst > test.all
Where test.lst contains the list of files 1 per line and their contents is concatenated into test.all
Update: This is a better one that avoids using large amounts of memory for large files:
perl -ne"system 'perl.exe', '-pe1', $_;" test.lst >test.all
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: appending files
by Anonymous Monk on Jan 04, 2006 at 02:28 UTC | |
by BrowserUk (Patriarch) on Jan 04, 2006 at 05:26 UTC |