Welcome to WebmasterWorld Guest from 54.159.50.111

Forum Moderators: bakedjake

Message Too Old, No Replies

does this command exist to selectively remove directories

     
7:31 pm on Jun 21, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 15, 2002
posts:450
votes: 0


if you have structure:

gallery/<dir1>/thumbs/
gallery/<dir2>/thumbs/
gallery/<dir3>/thumbs/

is there a command you can issue that will delete all /thumbs/ directories and files recursively but preserve each of gallery/<dirx>/ contents or would this have to be done programmatically?

7:41 pm on June 21, 2003 (gmt 0)

Preferred Member

joined:Feb 8, 2002
posts:470
votes: 0


I would say programmatically .. seek someone's help on eLance and it is so simple that someone perhaps will help you out for free

Air

7:50 pm on June 21, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
posts:1253
votes: 0


rm -rf gallery/dir*/thumbs