Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pawelduda
on Oct 31, 2022
|
parent
|
context
|
favorite
| on:
Ask HN: What piece of code/codebase blew your mind...
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:
awk '!seen[$0]++'