bugfindutils - Bugs: bug #34083, [feature request] analog of -I...


bug #34083: [feature request] analog of -I REPLACE-STR without -l 1 restriction

Submitted by:  gregory <poisson>
Submitted on:  Sat 20 Aug 2011 08:06:59 PM UTC  
Category:  xargs Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  gregory Open/Closed:  Open
Release:  None Fixed Release:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 25 Aug 2011 02:30:11 PM UTC, comment #3:

Just checked that such an option is not specified in POSIX (2004 or 2008) so scripts trying to be portable should not use it anyway and use the sh -c trick, for example. This is an argument for not implementing it and closing the report.

gregory <poisson>
Mon 22 Aug 2011 04:15:17 PM UTC, comment #2:

Well, it would save a few (normally 1) sh invocations, and would be somewhat easier to figure out and use. (The example you refer to only appears in findutils 4.4.0.). However, the trick/solution you propose is very good performance-wise compared to the use of the -I option. Thanks for the tip.

gregory <poisson>
Sun 21 Aug 2011 10:41:03 AM UTC, comment #1:

What advantage would this additional option offer over using the "sh -c" trick given in the EXAMPLES section of the GNU xargs manual page?

James Youngman <jay>
Project Administrator
Sat 20 Aug 2011 08:06:59 PM UTC, original submission:


I think, it is a pity, that the GNU version does not have option -J REPLACE-STR that does not imply -l 1 (like the BSD version, see, e.g.,
Maybe, you could consider addind it.

Many thanks,

gregory <poisson>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by poisson (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.3