summaryrefslogtreecommitdiffstats
path: root/usr.bin/xargs/xargs.1
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-05-02 02:42:34 +0000
committerjmallett <jmallett@FreeBSD.org>2002-05-02 02:42:34 +0000
commit96a12743eb9e02581876e3fdd9fc785e1eebfbcd (patch)
tree9a8df1d9686ad508823645a78c35a3a772f2d729 /usr.bin/xargs/xargs.1
parentc1bf294b84bd9846c5be9259703c4be92300f3b4 (diff)
downloadFreeBSD-src-96a12743eb9e02581876e3fdd9fc785e1eebfbcd.zip
FreeBSD-src-96a12743eb9e02581876e3fdd9fc785e1eebfbcd.tar.gz
Make -J a proper flag internal to the code (rather than just check for
use of replstr and lack of Iflag), and add -R, which when given with -I controls the number of arguments on which replacement will be done. Some people happen to think it's idiotic to limit to 5 arguments, so let the user override it if they like.
Diffstat (limited to 'usr.bin/xargs/xargs.1')
-rw-r--r--usr.bin/xargs/xargs.115
1 files changed, 13 insertions, 2 deletions
diff --git a/usr.bin/xargs/xargs.1 b/usr.bin/xargs/xargs.1
index debda8e..23a7798 100644
--- a/usr.bin/xargs/xargs.1
+++ b/usr.bin/xargs/xargs.1
@@ -47,7 +47,10 @@
.Nm
.Op Fl 0pt
.Op Fl E Ar eofstr
-.Op Fl I Ar replstr
+.Oo
+.Fl I Ar replstr
+.Op Fl R Ar replacements
+.Oc
.Op Fl J Ar replstr
.Op Fl L Ar number
.Oo
@@ -104,7 +107,11 @@ Execute
.Ar utility
for each input line, replacing one or more occurences of
.Ar replstr
-in up to 5 arguments to
+in up to
+.Ar replacements
+(or 5 if no
+.Op R
+flag is specified) arguments to
.Ar utility
with the entire line of input.
The resulting arguments after replacement is done will not be allowed to grow
@@ -191,6 +198,10 @@ A response of
.Ql y
causes the command to be executed, any other response causes it to be
skipped.
+.It Fl R Ar replacements
+This option specifies the maximum number of arguments that
+.Op I
+will do replacement in.
.It Fl s Ar size
Set the maximum number of bytes for the command line length provided to
.Ar utility .
OpenPOWER on IntegriCloud