Re: Command line search and replace
Jonathan D. Proulx wrote:
> also note that you must quote the wildcard '*.txt' to prevent shell
> expantion, but I feel the example stands bugs and all. Using xargs or
> for i in `find . -name '*.txt'` can result in stack overflows if there
> are alot of file (I don't know howmany, but it happened to me before
> somewhere aroud 1700 files, so I'm betting on 1024 as the breaking
> point, though it may be more or less)
The linux kernel has a maximum command line length of 131k or so (ARG_MAX).
However, xargs should never tickle that limit; it exists to avoid it after
all.
--
see shy jo
Reply to: