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*

7
  • How can I then make that an array ? Commented Nov 10, 2014 at 17:36
  • @MichaelDurrant, if you mean a bash array, added a way Commented Nov 10, 2014 at 18:07
  • See here if your array contains whitespace Commented Nov 19, 2017 at 9:40
  • @iruvar can you please explain what actually this means? i'm new to awk scripting and it would be helpful if you can clarify what actually happens when you say this !a[$0]++ Commented Jan 28, 2020 at 9:14
  • @iruvar if not possible to explain in comments any website explaining the above syntax at least would be beneficial. Commented Jan 28, 2020 at 12:33