Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make the locate command ignore certain directories' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make the locate command ignore certain directories
Authored by: Mikey-San on Nov 14, '03 02:03:21PM

This is easy with grep:

locate file | grep -v "/Previous*"

This will invert the search by grep and exclude what you want. I think. Heh.



[ Reply to This | # ]
Make the locate command ignore certain directories
Authored by: klktrk on Nov 14, '03 02:07:48PM

Much better to not have locate have to deal with files you don't want found in the first place. Why take up the extra disk space, and use the extra processing time during update of the locate database?



[ Reply to This | # ]