|
|
|
|
|
by xorcist
3084 days ago
|
|
Spawning a separate grep for each file? That's terribly inefficient. At least use xargs which will run one process on as many files as possible. But you know there's a -r for recursive, right? And unless you are using some historic relic of grep that is not GNU or BSD and doesn't understand the --include option you can just do: grep -rin "needle" --include "*.foo" . |
|