Tuesday, August 6, 2013

Find files which contains word using Linux command

Following Linux command can be used to find files which contains specific words. For example, if you need to search files which contain word "test", you can use the following command.

find . -exec grep -l "test" {} \;