[plug] grep + xargs = missing separator?
Cameron Patrick
cameron at patrick.wattle.id.au
Thu Sep 9 17:08:29 WST 2004
Andrew Furey wrote:
> Having switched to xargs a while ago to get around the shell
> max-arguments limitations, if I do
>
> # find /var/spool/exim/input -name \* | xargs grep -n -i -2
> --binary-files=text "badmailfrom"
>
> In this particular case, it returns
[...]
> Huh? Two of the separators are missing?!
I presume that they'd be because when the argument list gets too long,
xargs has to run multiple grep processes, and grep doesn't output the
separators at the end of a run?
Cameron.
More information about the plug
mailing list