Filemanagement

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Sun Mar 7 22:35:37 UTC 2004


On Sun, 7 Mar 2004, G. Matthew Rice wrote:

> "Peter L. Peres" <plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org> writes:
> > >         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
>
> Why '>>'?  The shell is only opening target.file once for this entire
> command.  As evidence, I offer:
> ... snip

I was presuming that the file would already exist and/or that the command
would be run more than once.

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