How to search files for specific content

A screenshot displaying the advanced network management options in Windows 10.

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>” ;

What do you think?

Leave a Reply

Related articles

Contact us

Partner with Us for Comprehensive IT

We’re happy to answer any questions you may have and help you determine which of our services best fit your needs.

Your benefits:
What happens next?
1

We Schedule a call at your convenience 

2

We do a discovery and consulting meting 

3

We prepare a proposal 

Schedule a Free Consultation