Ignore a directory in listing
Steven Buehler
steve at ibushost.com
Sun Apr 6 16:05:49 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$"
Thanks, I was so intent on getting it to work with the --ignore= statement
from /bin/ls, that my mind went blank about any other way. I had even tried
the --ignore="*steve" and --ignore"/usr/home/steve". Apparently when the -d
option is used, you can't use the --ignore= option.
Steve
More information about the redhat-list
mailing list