Shell/Bash: grep exclude Example


Shell/Bash Example: This is the "grep exclude" Example. compiled from many sources on the internet by

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

grep exclude

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

* Summary: This "grep exclude" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!