[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

scripting question


I've got a scripting question for you bash lovers out there.

I have a directory that has a lot of subdirectories, only one of which I want to keep.  Let's say I want to keep only the "B" subdirectory below:


Is there a way >>> on the command line <<< to remove all the directories other than B?  I thought there might be a way to do this with "find" but nothing I've tried yet seems to work.


Support your local ASPCA

Get YourName@gatormail.ws email Today!
Visit http://www.gatormail.ws/

Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag

Reply to: