Find all files with a specific text pattern on Unix based system

Finding text patterns in a given file is somewhat easy but what if you just quickly wanted to find all files that have a given text pattern?

This can easily be accomplished using this grep command:

grep -rnw "/path/to/given/files/" -e "<pattern-you-are-searching-for>

Leave a Reply

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