Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

grep exclude file extension

grep -r --exclude="*.cmd"  "ckim" ./
Comment

grep exclude

grep -R "what_you_want_to_capture" ./path_to_file/a.txt | grep -v "exclude this"
Comment

grep exclude

Just filter your output with:
grep -v "excluded_pattern"
Example to get all not txt files in current directory.
ls | grep -v .txt
Comment

PREVIOUS NEXT
Code Example
Shell :: how many repositories can be created in github 
Shell :: how to branch from a branch in git 
Shell :: ngrok start server 
Shell :: how to install jupyter notebook 
Shell :: ls bs date 
Shell :: how to search string in subdirectory in unix 
Shell :: kubectl exec run command inside pod 
Shell :: find change permissions to subdirectories 
Shell :: ubuntu send input to screen 
Shell :: no sound on ubuntu 
Shell :: check linux file size 
Shell :: open a pdf on linux 
Shell :: how to install nvm in ubuntu 18.04 
Shell :: terminal save txt to clipboard 
Shell :: linux no internet connection 
Shell :: install node specific version 
Shell :: ls list only first 10 files 
Shell :: git exclude file 
Shell :: git checkout remote branch 
Shell :: install postman in ubuntu 20.04 
Shell :: docker start exited container 
Shell :: how to check if I have sudo permission 
Shell :: gcloud shell ssh 
Shell :: vitejs tailwind 
Shell :: push with token github 
Shell :: docker remove dangling images 
Shell :: convert ppk to pem 
Shell :: how to delete all branches in git local 
Shell :: cp linux command with progress bar 
Shell :: push to github 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =