Hacker News new | ask | show | jobs
by knome 4757 days ago
Why not just run a recursive grep? That would save having to invoke grep on every single file found.

    findit() {
        grep -iHR $1 .
    }
Alternately, you could use the '+' variant of -exec in order to batch files together to be processed together.
1 comments

Cool, I wasn't aware of a -R flag in grep for some reason. I need to go back and re-read the man pages...