Answers for "grep exclude"

1

grep exclude

grep -R "what_you_want_to_capture" ./path_to_file/a.txt | grep -v "exclude this"
Posted by: Guest on January-19-2021
0

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
Posted by: Guest on October-22-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language