this post was submitted on 24 May 2024
384 points (98.0% liked)

Programmer Humor

31214 readers
121 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 9 points 1 month ago (1 children)

You can just do

grep Error5 log.txt
[โ€“] [email protected] 12 points 1 month ago (3 children)

In the back of my mind I know this is there, but the cat | grep pattern is just muscle memory at this point

[โ€“] [email protected] 3 points 1 month ago

I've been 'told off' so many times by the internet for my cat and grep combos that I still do it, then I remove the cat, it still works, and I feel better. shrug

[โ€“] [email protected] 3 points 1 month ago

Just remember that if you aren't actually concatenating files, cat is always unnecessary.

[โ€“] [email protected] 2 points 1 month ago

for me as well.