find and remove ?

Jack L. Stone jacks at sage-american.com
Sun May 15 18:01:03 UTC 2011


At 07:50 PM 5/15/2011 +0200, Rolf Nielsen wrote:
>2011-05-15 19:41, Jack L. Stone skrev:
>> At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote:
>>>> The comamnd:
>>>> #find /path/to/start/deleting -type d -name _vti_\*
>>>> worked fine to give the listing of what to delete, but when just
adding the
>>>> "-delete" at the end didn't delete, just ran the listing again.
>>>
>>> I forgot that adding the -type d won't let it delete non-empty
>>> directories. Try running it like:
>>> find /path/to/start/deleting -name _vti_\* -delete
>>>
>>>>
>>>> (^_^)
>>>
>>>
>>
>> Nope. Thate didn't delete either.
>>
>> Jack
>
>find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \;
>_______________________________________________

That worked! Thanks!

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american


More information about the freebsd-questions mailing list