Showing posts with label find a text string inside a file. Show all posts
Showing posts with label find a text string inside a file. Show all posts

Thursday, October 30, 2014

How to find a text string inside a file in linux

goto the folder in which you are searching file

find . -type f | xargs grep -l "localhost"

localhost is the text i want to search inside the files.