Quote:
Originally Posted by dragonix
Code:
find . -type f -exec grep -lr --device=skip <criteria> {} \;
|
With that command line,
find will spawn a new instance of
grep for
every file, making the whole procedure very slow. Also, it is quite pointless (but harmless) to tell
grep to recurse when you are giving it only ordinary files to examine, and of course the "--device=skip" option is unnecessary for that same reason. Better:
Code:
find . -type f -exec grep -l <criteria> {} +
Note the trailing "+" rather than ";" to tell
find that the
grep command accepts multiple arguments.