[Novalug] rm question

Dave Winn winndm@gmail.com
Thu Oct 10 12:28:40 EDT 2013


I had a similar task and discovered this about find as well (the -delete
action).
It seems some implementations do have this flag, and some do not.
YMMV.

So the admins I worked with taught me to use the -exec rm method for
portability across all our systems (government work, some ancient stuff,
some odd stuff, etc).



On Thu, Oct 10, 2013 at 12:12 PM, Ed James <edward.james@gmail.com> wrote:

> The "find" command also has a "-delete" action that could
> be used instead of the "rm" step, but I've not tested it
> properly yet.
>
> Ed James
>
>
> On Thu, Oct 10, 2013 at 11:58 AM, William Sutton <william@trilug.org>wrote:
>
>> that might be too destructive
>>
>> find . -type f -iname .ext1 -print 0 |xargs -0 rm
>>
>> might be better
>> ...
>>
>
>
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
>
>


-- 
Dave Winn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.firemountain.net/pipermail/novalug/attachments/20131010/fe388f3c/attachment.htm>


More information about the Novalug mailing list