Search
 
SCRIPT & CODE EXAMPLE
 

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'
Comment

find file with text recursively

grep --include=*.{c,h} -rnw '/path/to/somewhere/' -e "pattern"
Comment

PREVIOUS NEXT
Code Example
Shell :: save git username and password 
Shell :: shebang unix 
Shell :: Sub-process /usr/bin/dpkg returned an error code 
Shell :: git command to remove file from staging area 
Shell :: install xcode tools using brew 
Shell :: git global ignore 
Shell :: See all the PPAs added in the ubuntu system 
Shell :: how to force push to heroku 
Shell :: clockwork 
Shell :: cleaning up your ubuntu system 
Shell :: remove notebook kernel 
Shell :: swapping of two numbers without using third variable in shell script 
Shell :: install ninja on fedora 
Shell :: Please remove any global installs with one of the following commands: 
Shell :: ubuntu macbook camera 
Shell :: display id all image docker 
Shell :: install uvicorn 
Shell :: git rename branch 
Shell :: install vscode for ubuntu 
Shell :: ubuntu install bluetooth drivers 
Shell :: bash split file into multiple files 
Shell :: download and install open media vault from cli raspberry pi 
Shell :: batch directory 
Shell :: git orphan branch and remove all data 
Shell :: -bash: : Permission denied 
Shell :: linux kill all python processes 
Shell :: Where is the .zshrc file on Mac? 
Shell :: how to check my ubuntu version 
Shell :: update gnome shell 
Shell :: push project to github 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =