Answers for "bash search in files for string"

5

bash find all files containing string

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

shell script search from file content

grep 'word' filename
grep 'word' file1 file2 file3
grep 'string1 string2'  filename
cat otherfile | grep 'something'
command | grep 'something'
command option1 | grep 'data'
grep --color 'data' fileName
Posted by: Guest on March-07-2020

Code answers related to "bash search in files for string"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language