Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    Welcome to Unix & Linux.  The OP has a list of approximately 30 strings that he wants to ignore, and the four that he presented as examples have an average length of ten characters each, so your command is likely to be over 300 characters long.  This is likely to be hard to maintain (and even to read).  Can you modify your answer to be driven by the OP’s list of strings?  … … … … … … … … … … … … … … … … … … … …  P.S. Did you notice that the answer has been found? — The OP has learned how to get his original approach to work. Commented Oct 30, 2015 at 11:33
  • 2
    Why negatively evaluate my response? : / Commented Oct 31, 2015 at 10:17
  • 3
    Great answer. Has regex OR and the -vE option was helpful. Commented Mar 31, 2017 at 18:46
  • 4
    This is the answer to the question most people are probably trying to resolve. Commented Jun 15, 2018 at 7:57