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 :: tar extract to specific location 
Shell :: kali tools 
Shell :: bash single vs double quotes 
Shell :: add mirror list arch linux 
Shell :: scrcpy use on linux 
Shell :: bash print output to one line 
Shell :: TypeError [ERR_INVALID_ARG_TYPE]: The "from" argument must be of type string. Received undefined at validateString (internal/validators.js:120:11) 
Shell :: install scikit learn 
Shell :: docker redis 
Shell :: pip upgrade package 
Shell :: phpcs diferent xml 
Shell :: apk add build-essential 
Shell :: git commit and add in one command 
Shell :: add sudo user centos server group 
Shell :: repository commands 
Shell :: rsync only updated files 
Shell :: create branch from existing branch 
Shell :: remove docker machine 
Shell :: install react dependencies 
Shell :: show debian point release 
Shell :: git checkout 
Shell :: sudo service network-manager restart no working 
Shell :: replace delimiter for enter command 
Shell :: install elasticsearch on ubuntu 
Shell :: git set upstream repository 
Shell :: install steghide ubuntu 
Shell :: bash random int 
Shell :: remote origin remove 
Shell :: convert wsl to wsl2 
Shell :: bash if larger than 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =