Filemanagement

G. Matthew Rice matt-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org
Sun Mar 7 20:08:54 UTC 2004


"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

HTH,
-- 
g. matthew rice <matt-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org>                            starnix inc.
phone: 905-771-0017 x242                        thornhill, ontario, canada
http://www.starnix.com              professional linux services & products
--
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