RE: Ignore a directory in listing

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

 



> 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

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux