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

Re: scripting question



Maria Rodriguez said:

> 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.

what I do is move B to another location (perhaps just up 1 level) and
then do rm -rf *

cd /path/to
mv B ..
rm -rf *
mv ../B .

nate





Reply to: