@mdhughes Are you sure Perl is a loser here? One thing it WON'T be doing is spawning yet another processs and writing all those lines to it, just to get a line count. ffs.
@fleegman Oh, it can be a one-liner, except the N assignment. But it's barely readable now, even if you know zsh. Beats tens of lines of C or hundreds of ASM, as I did in the day.
@mdhughes I admit I don't know the peculiarities of zsh; I'm used to bash and ksh, which are blecherous. while loops fork? whose idea was this? 😛
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.