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 :: bash get package dependencies 
Shell :: jupyter install not running on windows 
Shell :: lumen with specific version 
Shell :: check litespeed version command 
Shell :: if command has output bash 
Shell :: start beef kali linux 
Shell :: batch fork bomb 
Shell :: install node and npm ubuntu 
Shell :: brave on linux 
Shell :: cp command exclude files 
Shell :: curl upload to artifactory with basic auth 
Shell :: how to generate ssh key 
Shell :: sshd: no hostkeys available -- exiting. 
Shell :: print in shell script 
Shell :: list number of files in each folder linux 
Shell :: user.signingkey git 
Shell :: role ansible update apt 
Shell :: To see details about a wifi connection on linux 
Shell :: boost volume in ubuntu 18.04 
Shell :: infinite-react-carousel install 
Shell :: what does source command do in linux 
Shell :: git create a new repository 
Shell :: how to remove a software from linux 
Shell :: docker-compose logs path 
Shell :: raspberry clear cache 
Shell :: push to github from terminal 
Shell :: install .net framework 3.5 from windows 
Shell :: react navigation install 
Shell :: add anaconda to git bash 
Shell :: should mocha and chai be npm installed as dependencies or dev dependencies 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =