1289
Linux Users
(lemmy.ml)
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.
cat ~/.bash_history | grep
Useless use of cat?
You saying I can just skip cat in that command and it works?
history | grep 'cat'
How did I not know this. Thank you!
it's
grep STRING FILE
to be preciseor
awk '/STRING/′ FILE
if you prefer that for some reasonYes, it was meant to be a self deprecating admission that I have used this unnecessarily verbose command.
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!