3 ms·
And the same code as hex-encoded above but with various missing characters, etc., introduced by the posting system. wget -qO - http://news.ycombinator.com/lead
by ralph 20y ago
And the same code as hex-encoded above but with various missing characters, etc., introduced by the posting system.
wget -qO - http://news.ycombinator.com/leaders http://news.ycombinator.com/leaders |
tr '"' '\n\n' |
sed -n 's/^user?id=//p' |
xargs -ri wget -qO - 'http://news.ycombinator.com/submitted?id={}' http://news.ycombinator.com/submitted?id={}' |
tr '' '\n' |
sed -n 's/^\([0-9][0-9]\) points by .=\(.\).$/\2 \1/p' |
awk '{c[$1]++; s[$1] += $2}
END {for (n in c) printf "%-20s %5d %5d %7.2f\n", n, c[n], s[n], s[n] / c[n]}' |
sort +3nr
Cheers, Ralph.
- ralph 20y agoHmm. It seems some italic text slipped in there. What other mark-up works? _Software Tools_ is an excellent book. The /leaning/ /tower/ of /Pisa/. Disappearing: lt= amp=& star= (becomes italic) question=? hash=#. Recognised: ralph@inputplus.co.uk http://google.com/ http://google.com/ Breaking lines: abc\ def\ ghi. Nope, how about abc\c def\c ghi. abc \ def \ ghi?
- bootload 20y agodefiantly there needs to be some sort of markup. pasting code (especially python) ~ see guido there is an instance where python and whitespace fails.
- ralph 20y agoI've added a post in the "improvements" thread. Please vote up if you think it's useful. http://news.ycombinator.com/comments?id=13271 http://news.ycombinator.com/comments?id=13271 Cheers, Ralph.
- ralph 20y agohttps://sourceforge.net/index.php ftp://ftp.freebsd.org/pub/FreeBSD/ Neither are turned into links. >=> <=< &=&