[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Limits of grep?
On Tue, Sep 26, 2000, Shaul Karl wrote about "Re: Limits of grep?":
> Then xargs won't work either, will it?
It will work, because xargs can run the command several times, each time giving
it only part of the arguments.
See 'man xargs' (or, read the source if you prefer ;))
Some relevant quotes from the manual:
"xargs reads arguments from the standard input, delimited by blanks
(which can be protected with double or single quotes or a backslash)
or newlines, and executes the command one or more times with any
initial-arguments followed by arguments read from standard input.
....
--max-lines[=max-lines], -l[max-lines]
Use at most max-lines nonblank input lines per command line; max-lines
defaults to 1 if omitted. Trailing blanks cause an input line to be
logically continued on the next input line. Implies -x.
...
--max-args=max-args, -n max-args
Use at most max-args arguments per command line. Fewer than max-args
arguments will be used if the size (see the -s option) is exceeded,
unless the -x option is given, in which case xargs will exit. "
--
Nadav Har'El | Tuesday, Sep 26 2000, 27 Elul 5760
nyh@math.technion.ac.il |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Tea or coffee? Coffee, without cream. It
http://nadav.harel.org.il |will be without milk, we have no cream.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il