Filemanagement
Peter L. Peres
plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Sun Mar 7 20:18:02 UTC 2004
On Sun, 7 Mar 2004, G. Matthew Rice wrote:
> "Peter L. Peres" <plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org> writes:
> > ls *.pgn|xargs cat2 -o target.file
> >
> > cat2 is from the cdwtools package. See cat2 --help after you install it.
>
> Maybe I'm missing something but isn't regular cat good enough?
>
> cat *.pgn >target.file
>
> Also, ls/xargs won't help here. If 'cat *.pgn' creates too long of a command
> line, so will 'ls *.pgn'. Variations around find(1) would work, though.
> Something like:
>
> find . -name '*.pgn' | xargs cat >target.file
Yes, correct, my bad. Anything that expands a couple of hundred files as
CLI arguments will likely fail. Also that should be cat >>target.file
Peter
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list