finding things in unix
Fairlight
fairlite at fairlite.com
Fri Apr 23 19:00:55 PDT 2010
I don't know why nobody's suggested installing slocate, having updatedb run
nightly, and using: locate filename
Partial filenames work without wildcards.
And it's run periodically, search very quickly often. Essentially, a
cached 'find' that doesn't give a fig about executable or not, and whose
syntax is perfect for those who are easily confused.
Combine with grep for even better results. Example:
locate upload |grep .xls
The slocate package is one of those critical things I make sure is
installed on any system I admin. Few things waste more time needlessly
than running 'find' against a few terabytes and failing after a huge delay,
and having to refine a search, with only meagre disk caching benefits
because there are so many files. God forbid you're using networked
filesystems and need multiple finds as well.
mark->
--
Audio panton, cogito singularis,
More information about the Filepro-list
mailing list