From owner-freebsd-questions@FreeBSD.ORG Sun May 15 18:01:03 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B475106566B for ; Sun, 15 May 2011 18:01:03 +0000 (UTC) (envelope-from jacks@sage-american.com) Received: from mail.sagedata.net (mail.sagedata.net [38.106.15.121]) by mx1.freebsd.org (Postfix) with ESMTP id 516508FC18 for ; Sun, 15 May 2011 18:01:03 +0000 (UTC) Received: from SAGEPLACE (99-111-143-27.lightspeed.crchtx.sbcglobal.net [99.111.143.27]) by mail.sagedata.net (8.14.4/8.14.4) with SMTP id p4FI11qG089387; Sun, 15 May 2011 13:01:01 -0500 (CDT) (envelope-from jacks@sage-american.com) X-Authentication-Warning: mail.sagedata.net: Host 99-111-143-27.lightspeed.crchtx.sbcglobal.net [99.111.143.27] claimed to be SAGEPLACE Message-Id: <3.0.1.32.20110515130100.0195b6e0@sage-american.com> X-Sender: jacks@sage-american.com X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Sun, 15 May 2011 13:01:00 -0500 To: Rolf Nielsen From: "Jack L. Stone" In-Reply-To: <4DD01257.1070905@lazlarlyricon.com> References: <3.0.1.32.20110515124117.0195b6e0@sage-american.com> <3.0.1.32.20110515110806.0195b6e0@sage-american.com> <3.0.1.32.20110514171011.018a0598@sage-american.com> <3.0.1.32.20110515102740.0195b6e0@sage-american.com> <3.0.1.32.20110515110806.0195b6e0@sage-american.com> <3.0.1.32.20110515124117.0195b6e0@sage-american.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Greylist: Message whitelisted by Sendmail access database, not delayed by milter-greylist-4.2.6 (mail.sagedata.net [38.106.15.121]); Sun, 15 May 2011 13:01:02 -0500 (CDT) X-Scanned-By: milter-spamc/1.15.388 (mail.sagedata.net [38.106.15.121]); Sun, 15 May 2011 13:01:02 -0500 X-Spam-Status: NO, hits=-10.00 required=4.50 X-Spam-Report: Content analysis details: (-10.0 points, 4.5 required) | | pts rule name description | ---- ---------------------- -------------------------------------------------- | -0.0 SHORTCIRCUIT Not all rules were run, due to a shortcircuited rule | -10 ALL_TRUSTED Passed through trusted hosts only via SMTP | Cc: Eitan Adler , freebsd-questions@freebsd.org Subject: Re: find and remove ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2011 18:01:03 -0000 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