4 ms·
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
by BuildTheRobots 11mo 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.
- evertedsphere 11mo agomore precisely, uniq produces output in the same order as the input to it, just collapsing runs / run-length encoding it