Date: Fri, 04 Nov 2011 14:41:33 -0300 From: Rodrigo Gonzalez <rjgonzale@estrads.com.ar> To: Graeme Dargie <arab@tangerine-army.co.uk> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: removing directories Message-ID: <4EB423CD.6040702@estrads.com.ar> In-Reply-To: <0EE458C34045A44DBC2CA2DC5CEB42B5239647FE05@mercury.universe.galaxy.lcl> References: <0EE458C34045A44DBC2CA2DC5CEB42B5239647FE05@mercury.universe.galaxy.lcl>
next in thread | previous in thread | raw e-mail | index | archive | help
El 04/11/11 13:25, Graeme Dargie escribió: > 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? > > Regards > > G > I dont know how to make in one command....but to delete thumbnails directories find . -type d -name thumbnails -exec rm -rf {} \; You can do the same for the pages directories To test what you will delete please run find . -type d -name thumbnails -print and see that it is correct
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EB423CD.6040702>