Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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'
 
PREVIOUS NEXT
Tagged: #linux #find #text #files #recursively
ADD COMMENT
Topic
Name
2+2 =