Today I learned about the
-v flag for
--invert-match, flag, returns all lines that do not match your regular expression.
Let's say you have a long list of items, and you want to narrow it down to the ones that are not orange. I have banged my head against trying to do this with
sed multiple times (as my search history will attest), and it turns out to be so much easier with
orange you glad I stopped there?
If that list is in a file called
and it will return: