I tend always to use find when looking for files but recently
discovered 'locate'.
However the 'locate' way of doing things strikes me a not very useful
as it searches for the string you give it in every part of the
filename which, in general, gives far too many hits.
E.g. if I do "locate organ" in the hope of finding some file containing
organ music I get thousands of hits with 'Korganizer' etc. in. I also
tried "locate -r '^organ" but that found nothing (which is also wrong).
"find / -name 'organ*'" does what I want (if slowly), is there any way
of doing the same search with locate?
--
Chris Green (chris(a)areti.co.uk)
"Never ascribe to malice that which can be explained by incompetence."