[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unix command(s) to remove files recursively?



Andrei POPESCU [2012-06-07 13:00:20 +0300] wrote:

> On Ma, 05 iun 12, 12:01:13, rjc wrote:
>> P.S. While you're at it I suggest "man xargs" - you'll find it more
>> useful than "-exec" with certain uses of find.
>
> Anything that '-exec {} +' can't do?

While "xargs" has more features I think the normal use-case is indeed
just that.

    find [...] -print0 | xargs -0 command [options] --

    find [...] -exec command [options] -- {} +

Attachment: pgpbUuEsg4yLm.pgp
Description: PGP signature


Reply to: