Re:Donald Knuth was framed (2020)
by vukgr on Sunday May 08, 2022 @10:13AM
(#31304162)
I'm pretty sure sed ${N}q is supposed to chose the N (or k) top choices, where N is given as an argument/variable.
(Going off of the fact that head is essentially sed 11q, where it quits on the 11th line.)
But yeah, head -n (--lines) would do the job here perfectly while being more readable, no clue why it wasn't used.
But yeah, head -n (--lines) would do the job here perfectly while being more readable, no clue why it wasn't used.