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

Re: scripting question

hi ya

On Tue, 15 Apr 2003, Maria Rodriguez wrote:

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

silly way...

cd /path 

find . -type d -maxdepth 1 | egrep -v "to/B|lost+found" | xargs ls -l

c ya

Reply to: