Re: xargs(1) "replstr" patch

2001-05-15 Thread Garance A Drosihn
At 11:52 PM -0700 5/14/01, Dima Dorfman ably wrote: >This is a simplistic example that can be done in many other ways >(including using -J), but it shows what -I is supposed to be able to >do. -J doesn't work with the above since it only looks for the >replstr once, and will not find it unless it

Re: xargs(1) "replstr" patch

2001-05-14 Thread Dima Dorfman
Peter Pentchev <[EMAIL PROTECTED]> writes: > On Mon, May 14, 2001 at 11:31:53PM -0400, Garance A Drosihn wrote: > > Still, let me say that I do hope to get back to 'xargs', and add > > the -I option. I must admit my enthusiasm for doing -I wore off > > after seeing the current code to 'xargs'. N

Re: xargs(1) "replstr" patch

2001-05-14 Thread Peter Pentchev
On Mon, May 14, 2001 at 11:31:53PM -0400, Garance A Drosihn wrote: > At 4:09 AM +0200 5/15/01, Cyrille Lefevre wrote: > >Brian Somers <[EMAIL PROTECTED]> writes: > > > >> I'd suggest going ahead and committing it ASAP - before people start > >> ``discussing'' it again :oI > > > >from my point of

Re: xargs(1) "replstr" patch

2001-05-14 Thread Garance A Drosihn
At 4:09 AM +0200 5/15/01, Cyrille Lefevre wrote: >Brian Somers <[EMAIL PROTECTED]> writes: > >> I'd suggest going ahead and committing it ASAP - before people start >> ``discussing'' it again :oI > >from my point of view, it would be better to implement -i/-I than this >hack which has no advanta

Re: xargs(1) "replstr" patch

2001-05-14 Thread Cyrille Lefevre
Brian Somers <[EMAIL PROTECTED]> writes: > I'd suggest going ahead and committing it ASAP - before people start > ``discussing'' it again :oI from my point of view, it would be better to implement -i/-I than this hack which has no advantage in performance and functionnality than : while read a

Re: xargs(1) "replstr" patch

2001-05-12 Thread Garance A Drosihn
At 8:37 PM -0700 5/11/01, Dima Dorfman wrote: >Garance A Drosihn <[EMAIL PROTECTED]> writes: > > When I install this man page on -stable, and do a 'man xargs', >> that last line is displayed to the user as: >> > > /bin/ls -1d [A-Z]* | xargs -J [] cp -rp /bin/ls0 0/bin/ls1 > >... Old version

Re: xargs(1) "replstr" patch

2001-05-12 Thread Peter Pentchev
Seconded :) G'luck, Peter -- Do you think anybody has ever had *precisely this thought* before? On Sat, May 12, 2001 at 11:04:42AM +0100, Brian Somers wrote: > I'd suggest going ahead and committing it ASAP - before people start > ``discussing'' it again :oI > > Feel free to blame me for rev

Re: xargs(1) "replstr" patch

2001-05-12 Thread Brian Somers
I'd suggest going ahead and committing it ASAP - before people start ``discussing'' it again :oI Feel free to blame me for reviewing it !!! > Folks, > > The attached patch adds a "replacement string" feature to xargs(1). > There's a full description in the man page update (also attached), but

Re: xargs(1) "replstr" patch

2001-05-11 Thread Dima Dorfman
Garance A Drosihn <[EMAIL PROTECTED]> writes: > At 6:03 PM -0700 5/11/01, Dima Dorfman wrote: > >+For example, the following command will copy the list of files and > >+directories which start with an uppercase letter in the current > >+directory to > >+.Pa destdir : > >+.Pp > >+.Dl /bin/ls -1d [A

Re: xargs(1) "replstr" patch

2001-05-11 Thread Garance A Drosihn
At 6:03 PM -0700 5/11/01, Dima Dorfman wrote: >Comments? Suggestions? The one oddity I forgot to ask Dima about was in the man page. We included an example, which in nroff source is: >+For example, the following command will copy the list of files and >+directories which start with an uppercase

xargs(1) "replstr" patch

2001-05-11 Thread Dima Dorfman
Folks, The attached patch adds a "replacement string" feature to xargs(1). There's a full description in the man page update (also attached), but the following should demonstrate the new functionality: dima@spike% ./xargs -J [] echo CMD LINE [] ARGS < test CMD LINE this is the co