Simple linux command to search all files in a given path and display the line in the file which matches defined content.
find <PATH> -print | xargs grep "<CONTENT>"
or
find <PATH> -type f -exec grep -H "<CONTENT>" \;
Zen and the art of design.
Simple linux command to search all files in a given path and display the line in the file which matches defined content.
find <PATH> -print | xargs grep "<CONTENT>"
or
find <PATH> -type f -exec grep -H "<CONTENT>" \;
Be First To Comment
Related Post
Leave Your Comments Below