Re: removing directories

看板FB_questions作者時間14年前 (2011/11/05 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/6 (看更多)
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 _______________________________________________ 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"
文章代碼(AID): #1Ej2XbzJ (FB_questions)
文章代碼(AID): #1Ej2XbzJ (FB_questions)