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


Click here to return to the 'yet another option ...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
yet another option ...
Authored by: sjk on Mar 23, '06 04:58:50PM
If/when you upgrade to 10.4 there's an example of what I think you're trying to do in MacSlash | Using Spotlight In Terminal.app:

mdfind -onlyin ~ -0 password | xargs -0 fgrep -H -n "password"

It's a powerful combination using mdfind (Spotlight) to quickly find files, then fgrep to display matching content within them. Different varieties of contextual search results could be produced with different options for those commands plus other post-processing refinements. Many possibilities.

[ Reply to This | # ]