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*

2
  • x[$0]++ == 0 worked with heirloom oawk, isn't it original awk? Commented Feb 8, 2016 at 15:58
  • @cuonglm, that's a port of (Open)Solaris /bin/awk, so yes, not much different from the original awk like Solaris' /bin/awk. As I said, x[$0]++ == 0 should work with every awk including the original one on Unix V7 (tested on a PDP11 emulator with the V7 images from the Unix Heritage Society). Commented Feb 8, 2016 at 16:40