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*

6
  • 2
    It bears mentioning that this requires GNU Awk, as both the xor() function and the IGNORECASE variable are not provided natively by some other implementations, notably The One True Awk. Commented Feb 4, 2021 at 20:56
  • @GregA.Woods, yes, I used GNU Awk. Commented Feb 4, 2021 at 21:00
  • 1
    The \< and \> are also non-POSIX extensions. Commented Feb 5, 2021 at 2:42
  • @EdMorton, it's time to update POSIX :) Commented Feb 5, 2021 at 12:03
  • 1
    Then you'd have to update all of the software that claims to be POSIX compliant :-). It's easier just to say "using GNU awk for ...." in answers so people don't waste their time trying to make a script work when all they have is a POSIX awk. Commented Feb 5, 2021 at 12:06