How to search string in files Linux


Use this command bellow to find a pattern in the arborescence.

grep -rnw '/path/to/somewhere/' -e 'pattern'

https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux

How useful was this post?

Average rating / 5. Vote count:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.