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

Re: using locate properly



Claudio Bley, 2002-Oct-08 16:25 +0200:
> On Tue, 2002-10-08 at 15:15, Robert Wilhelm Land wrote:
> > This could be more a question of bash fundamentals:
> > 
> > By trying to find Muttrc on my HDD I used the locate
> > program.
> > 
> > This was the command I ueed:
> > 
> > rland@MINI:~$ locate [Mm]uttrc
> > ... no reaction.
> 
> <snip>
> 
> > .....so I tried:
> > 
> > rland@MINI:~$ locate '[Mm]uttrc'
> > rland@MINI:~$ locate "[Mm]uttrc"
> > ...nothing.
> > 
> > But:
> > rland@MINI:~$ locate &pi0;[Mm]uttrc'
> >  >
> > ....put the bash into this ">" - mode and could
> > only be reset by ctrl+C.
> > 
> > What has happened here?
> > I would be awfully grateful if someone would help.
> 
> If you specify a shell pattern to search for, the file needs to match
> exactly to this pattern (including the directory part). 
> 
> $ locate '*/[Mm]uttrc'

Btw Robert,

The files you're trying to locate are /etc/Muttrc and
/home/<user>/.muttrc

jc


--
Jeff Coppock		Systems Engineer
Diggin' Debian		Admin and User



Reply to: