How do I find all files containing specific text on Linux?


 

~]# grep -rnw '/path/to/somewhere/' -e 'pattern'


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



Article ID: 99
Created On: Mon, Jan 17, 2022 at 10:47 PM
Last Updated On: Mon, Jan 17, 2022 at 10:47 PM
Authored by: Saeed Nobakht [[email protected]]

Online URL: https://www.navel.ir/article/how-do-i-find-all-files-containing-specific-text-on-linux-99.html