You're viewing a comment by Peteris Krumins and its responses.

December 11, 2008, 23:23

joe, it's really simple (you won't believe it):

awk '!a[$0]++'

Comment Responses

krishna Permalink
May 11, 2010, 04:14

yes it works like a magic,, It appears to have to same effect as $>cat

<file>

| uniq
How does awk work here,, can someone explain?

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

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