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

This is even easier to do with awk.

    awk -e '!a[$0]++'
This also preserves the original input order, which is a nice property.


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

Search: