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.

No comments:

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)