Y
Hacker News
new
|
ask
|
show
|
jobs
by
BuildTheRobots
239 days ago
It's something I've done myself in the past. First sort is because it needs to be sorted for uniq -c to count it proper, second sort because uniq doesn't always give the output in the right order.
1 comments
evertedsphere
239 days ago
more precisely, uniq produces output in the same order as the input to it, just collapsing runs / run-length encoding it
link