Thursday, May 23, 2013

find string in file using find command


Here is the syntax to find a word in a file.

find . -type f -exec grep -l "word" {} +

No comments:

Post a Comment