Link to research paper on Pubmed

There is a huge debate on whether to use head or sed 11q command on your shell scripts, it turns out using the latter can be a sign of dimentia as far as I understand from reading the above research paper. Its in a very reputed journal so it must be true

I can link to a Research paper with that in the title therefore I am right

you are viewing a single comment's thread
view the rest of the comments
[–] 26 points 8 months ago (1 child)

The two commands are not equivalent. sed 11q prints 11 lines whereas head's default is 10.

Personally I would prefer head -11 in this situation as it more clearly indicates, for the sake of the meme, that something is being removed from the head.

There's also that head seems to be ever-so-slightly quicker, perhaps proving what we already knew about thinking being quicker than speech.

TL;DR That's what she sed?

  • source
  • hideshow 1 child comment