Answers for "how to find string in all files in linux"

5

bash find all files containing string

grep -r '/path/to/somewhere/' -e 'pattern'
Posted by: Guest on October-29-2020
8

find string in files linux

grep -rnw '/path/to/somewhere/' -e 'pattern'
Posted by: Guest on January-23-2020
0

linux find all files name containing string

find . -name "*ABC*" -exec grep -H 'XYZ' {} +
Posted by: Guest on April-23-2021

Code answers related to "how to find string in all files in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language