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.

5
  • Works with GNU Awk 4.1.3, API: 1.1. Have you tried a space between ! and x? Commented Feb 7, 2016 at 9:44
  • 4
    On Solaris, use nawk or /usr/xpg4/bin/awk. /bin/awk shouldn't be used, it's the one from the 70s. Generally on Solaris, you want to do PATH=$(getconf PATH):$PATH to have sane versions of the utilities. Commented Feb 7, 2016 at 9:51
  • /usr/xpg4/bin/awk works. Thank you. Commented Feb 7, 2016 at 9:54
  • @StéphaneChazelas I'm deleting answer and comments as I have no means to test this. If I'm that wrong, this is the better way. Commented Feb 7, 2016 at 11:24
  • @StéphaneChazelas Could you please formally answer the question. Commented Feb 8, 2016 at 13:06