Answers for "linux grep search text in files recursively without filename"

3

linux find text in files recursively -include

# look for airflow Variable usage recursively in it's homepath
# include only python and sql files in the search
grep --include=*.{py,sql} -rnw /home/airflow -e 'Variable'

# shows how to use exclude... it'll skip data or log files
grep --exclude=*.{data,log} -rnw . -e 'Variable'
Posted by: Guest on July-30-2021
8

How to grep for file name recursively with some file content

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

Code answers related to "linux grep search text in files recursively without filename"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language