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

scripting question



Hello!

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:

/path/to/A
/path/to/B
/path/to/C

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.

Thanks!!!

Maria
--
Support your local ASPCA
http://www.aspca.org/


_____________________________________________________________
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: