[wplug] Interesting shell problem (possibly OT?)

Bruce Adams bruce.adams at acm.org
Wed Jan 12 05:07:11 EST 2011


"xargs" will avoid that problem:
    grep -lr "Major Fault: AIS" /some/path | xargs rm -vf | wc

On Tue, Jan 11, 2011 at 11:07 PM, Vance Kochenderfer <vkochend at nyx.net> wrote:
> Christopher DeMarco <demarco at maya.com> wrote:
>>
>>     rm -vf $(grep -lr "Major Fault: AIS" /some/path) | wc -l
>
> bash: /bin/rm: Argument list too long
> 0


More information about the wplug mailing list