From owner-freebsd-questions@FreeBSD.ORG Wed Feb 10 13:24:36 2010 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 D1C74106566B for ; Wed, 10 Feb 2010 13:24:36 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-exrelay2.uni-muenster.de (ZIVM-EXRELAY2.UNI-MUENSTER.DE [128.176.192.15]) by mx1.freebsd.org (Postfix) with ESMTP id 64A388FC08 for ; Wed, 10 Feb 2010 13:24:36 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.49,443,1262559600"; d="scan'208";a="236207272" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER05.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay2.uni-muenster.de with ESMTP; 10 Feb 2010 14:24:35 +0100 Received: by ZIVMAILUSER05.UNI-MUENSTER.DE (Postfix, from userid 149459) id 4747F1B07E7; Wed, 10 Feb 2010 14:24:35 +0100 (CET) Date: Wed, 10 Feb 2010 14:24:34 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Jason Message-ID: In-Reply-To: <20100210031456.GA80933@eggman.experts-exchange.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@FreeBSD.org Subject: Re: problem with `find -delete` 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: Wed, 10 Feb 2010 13:24:36 -0000 thanks goes to jilles on #freebsd-bugbuster. he told me that -delete doesn't delete directories recursively. so what i'm bow using is sudo /usr/bin/find /usr/ports -name work -depth 3 -type d -exec rm -rf {} + cheers. alex Jason schrieb am 2010-02-10: > On Wed, Feb 10, 2010 at 02:51:52AM +0100, Alexander Best thus spake: > >hi there, > >i've been trying to delete all the works directories in my ports > >dir. this is > >the command i'm trying to use: > >sudo /usr/bin/find /usr/ports -name work -depth 3 -type d -delete > >after i issue the command however > >sudo /usr/bin/find /usr/ports -name work -depth 3 -type d > >tells me that nothing got deleted at all. is there something wrong > >with that > >command? > >cheers. > >alex > You may want to try looking here: > http://www.freebsd.org/doc/handbook/ports-using.html > Section 4.5.5 > >_______________________________________________ > >freebsd-questions@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to > >"freebsd-questions-unsubscribe@freebsd.org" > -- > Jason Helfman > System Administrator > experts-exchange.com > http://www.experts-exchange.com/M_4830110.html