Hacker News new | ask | show | jobs
by atleta 1942 days ago
Add -n to the second sort to actually get a numerically (as opposed to lexically) sorted list. Also, here (using bash on linux) awk needs $2 instead of $4.

It doesn't catch the pipes, because you are parsing the command lines as entered, and you filter for a single parameter from each.