Linux + find word/string in file under directory

findlinux

I have the following command

find /var -type f -exec grep "param1" {} \; -print

With this command I can find the param1 string in any file under /var but the time that it take for this is very long.

I need another possibility to find string in file but much more faster then my example

Best Answer

You could try using grep directly as in

grep -R "param1" /var/*
Related Question