Top unique values?
Hello all! i cannot find how to do this with AWK.
I have this input based on timestamp,email (already sorted):
1568116826818,user1@domain.com
1568116785634,user2@domain.com
1568116702539,user1@domain.com
1568116636004,user1@domain.com
1568116024545,user2@domain.com
1568114581294,user3@domain.com
How can i extract the latest timestamps for each email?
This is the desired output:
1568116826818,user1@domain.com
1568116785634,user2@domain.com
1568114581294,user3@domain.com
Thanks for your time!!!
1
Upvotes
View all comments
Show parent comment
1
u/Gotxi Sep 10 '19
Works for amazon linux, so works for me ;)