You're viewing a comment by Anand G and its responses.

Anand G Permalink
January 12, 2015, 06:58


awk '!arr[$2]++' file.txt
I know that the above command will Get unique entries in file.txt based on column 2 (takes only the first instance). but want to understand the logic behind it. Please help

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "disk_92": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.