From owner-freebsd-questions@FreeBSD.ORG Fri Nov 4 19:55:37 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 21495106566B for ; Fri, 4 Nov 2011 19:55:37 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from ifdnrg30.ifdnrg.com (outbound.ifdnrg.com [193.200.98.138]) by mx1.freebsd.org (Postfix) with ESMTP id B63C88FC08 for ; Fri, 4 Nov 2011 19:55:36 +0000 (UTC) Received: from [192.168.1.182] (host86-164-208-209.range86-164.btcentralplus.com [86.164.208.209]) (authenticated bits=0) by ifdnrg30.ifdnrg.com (8.14.5/8.14.4) with ESMTP id pA4JtXuu082136 for ; Fri, 4 Nov 2011 19:55:34 GMT (envelope-from paul@ifdnrg.com) Message-ID: <4EB44336.2090006@ifdnrg.com> Date: Fri, 04 Nov 2011 19:55:34 +0000 From: Paul Macdonald User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.20) Gecko/20110804 Thunderbird/3.1.12 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Fwd: Re: removing directories 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: Fri, 04 Nov 2011 19:55:37 -0000 > Ok this might be a bit of a newbie question but here goes. > > I have a large number of directories around 300 which all have sub dirs, some of those have sub dirs in each of these there are two further sub dirs called pages and thumbnails, is there an easy way to remove all the pages and thumbnail dirs from the tree? > whilst there's been posts listing magic one liners which'd do this, i think this is a prime example of where i'd use a scripting language (perl/php whatever) to either do the deletes or to output shell commands which can be previewed/piped to a shell script. i love the one liners, but you don't want them to be 'one-chancers'! will keep my eye on the dundee utd sites for 404's :) Paul. > G > _______________________________________________ > 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" >