On Wed, 17 Nov 2004 06:28:17 +1300
Roger Searle <[EMAIL PROTECTED]> wrote:

> SuSEbox:/home/roger # locate icons | grep firefox | less
> locate: /var/lib/locatedb: No such file or directory

Erm . .. Jus realised that this thread had continued well after I wrote
this reply.  Well here is, anyway . ..

I find that it pays to search on the most generic term possible first,
so 

        locate icon | less
                  ^       

should make a 'wider' search, which you can refine by yanking back the
command line and modifying it, in the knowledge that what you want is
probably in there somewhere.  You can also search from within 'less' by
using '/[search pattern]'. You don't know whether the icon file is named
firef, ff, ffox, firefox, etc., or what the extension is.  

These methods tak a little longer, but it's almost always quicker to
'home in' from a wide search to a narrow one, rather than risk missing
the target altogether - so you don't know whether or not it exists.   

Note Nicks reply too, to run 

        updatedb

which logs the entire filesystem into its database.  This is a snapshot,
and doesn't get updated when something changes.  It's advantage is that
finding a file is much faster than a real file search, and it's much
friendlier at using wildcards. 

-- 
Alasdair Tennant
Dunedin
New Zealand

Reply via email to