this post was submitted on 24 Sep 2025
1271 points (98.3% liked)

Programmer Humor

26570 readers
1700 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] echindod@programming.dev 16 points 2 days ago (2 children)
[–] Hammerheart@programming.dev 2 points 1 day ago (1 children)

Yes, it was meant to be a self deprecating admission that I have used this unnecessarily verbose command.

[–] echindod@programming.dev 2 points 16 hours ago

Ah. Well. I can not be blameless on this. I also probably use cat unnecessarily still. But less so with grep these days. I'm getting better... I swear!

[–] disobey2623@lemmy.dbzer0.com 2 points 1 day ago (2 children)

You saying I can just skip cat in that command and it works?

[–] x00z@lemmy.world 8 points 1 day ago (1 children)
[–] ulterno@programming.dev 0 points 1 day ago

My output was empty for that command.

Guess why?
Because history only gives the last few lines in my system.

[–] neox_@sh.itjust.works 5 points 1 day ago (1 children)
[–] disobey2623@lemmy.dbzer0.com 4 points 1 day ago (1 children)

How did I not know this. Thank you!

[–] oozynozh@sh.itjust.works 2 points 1 day ago

it's grep STRING FILE to be precise

or awk '/STRING/′ FILE if you prefer that for some reason