Ignore a directory in listing

Steve Phillips steve at focb.co.nz
Sun Apr 6 15:21:29 UTC 2008


Steven Buehler wrote:
> I am trying to run the /bin/ls command but ignore a specific listing.
> /bin/ls --ignore="steve" -d1 /usr/home/*
> But when I run it with the -d1 option, it doesn't ignore it.  Does anybody
> know why?  Or how to do this?
> 
> Thanks
> Steve
> 

um, ls -d1 /usr/home/* | egrep -v "\/steve$"

?

-- 
Steve.




More information about the redhat-list mailing list