Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

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.





Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: