Re: Locate with exclude?

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

 



On Sunday 18 February 2007, Chris Jones wrote:
> On Sunday 18 February 2007 10:01:15 am Anne Wilson wrote:
> > I generally use locate to find a file, but I have /mnt/FC4root
> > and /mnt/FC4/home, and dozens of 'finds' are reported that are not
> > relevant. I'd like to use locate, telling it to ignore/mnt/FC4*, but
> > nothing in the man pages tells me that this is possible.
> >
> > Does anyone have a solution to searching while excluding large areas like
> > this?
> >
> > Anne
>
> How about
>
>  locate XXX | grep -v '/mnt/FC4'
>
I wouldn't have guessed that.  I've not come across 'grep -v' before, but it's 
one worth remembering, thanks.

Anne


Attachment: pgpcMXJZyUlM2.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux