SyntaxFix
Write A Post
Hire A Developer
Questions
grep matches, grep -v does the inverse. If you need to "match A but not B" you usually use pipes:
grep
grep -v
grep "${PATT}" file | grep -v "${NOTPATT}"