Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

More of a shell snippet, but removing duplicate lines with awk is one that comes to my mind:

awk '!seen[$0]++'



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: