RetroFed Forum
Your home away from modern life.
Using sed 11q can be an early sign of dementia
Post Reply
AuthorMessage
cy_narrator discuss.tchncs.de cy_narrator@discuss.tchncs.de
Joined: 2023-07-01
(edited) Quote

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

59   Original
CallMeAl (like Alan) piefed.zip CallMeAl@piefed.zip
Joined: 2025-12-14
#2 · Quote Reply

you can skip both if you just tac | tail | tac

13
TheTechnician27 lemmy.world TheTechnician27@lemmy.world
Joined: 2024-07-25
#3 · Quote Reply

Dementia

Great, a Debian distro targeted at gamers. Just what we needed. 🙄

23
palordrolap fedia.io palordrolap@fedia.io
Joined: 2024-08-13
#4 · Quote Reply

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?

29
the_crotch sh.itjust.works the_crotch@sh.itjust.works
Joined: 2024-03-07
#5 · Quote Reply

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...

something is being removed from the head

Around here we call that a haircut. Or brain surgery if its done by a doctor.

4
mlg lemmy.world mlg@lemmy.world
Joined: 2023-07-29
#6 · Quote Reply

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

10
FauxLiving lemmy.world FauxLiving@lemmy.world
Joined: 2025-02-10
#7 · Quote Reply

you can skip both if you just tac | tail | tac

You can skip everything if you

:(){ :|:& };:
7
Lucy :3 feddit.org 30p87@feddit.org
Joined: 2024-07-22
#8 · Quote Reply

You can skip everything if you :(){ :|:& };:

sudo rm -rf --no-preserve-root /

1
Post Reply
Back to top