Differences between version 2 and predecessor to the previous major change of xargs(1).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Friday, April 25, 2003 12:27:31 pm | by StuartYeates | Revert |
Older page: | version 1 | Last edited on Tuesday, June 4, 2002 12:23:01 am | by perry | Revert |
@@ -162,11 +162,27 @@
is 1. If ''max-procs'' is 0, __xargs__ will run as
many processes as possible at a time. Use the ''-n''
option with ''-P''; otherwise chances are that only one
exec will be done.
+!!EXAMPLE
+
+If you're using the command:
+
+''grep 7d?] archive/*''
+
+and the ''archive'' directory has grown too large and is
+now giving the error ''Argument list too long'' you can
+use:
+
+''find archive -type f | xargs grep '7d'''
+
+This could also be done using the -exec option to find,
+but this approach causing a process creation for each
+file.
+
!!SEE ALSO
__find__(1L), __locate__(1L), __locatedb__(5L),
updatedb(1) __Finding Files__ (on-line in Info, or
printed)
----