xxxxxxxxxx
# 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'
xxxxxxxxxx
grep --include=\*.{c,h} -rnw '/path/to/somewhere/' -e "pattern"