If you're catting a file into a grep, you can go.
I mean good point, but if I'm just using bash as a shell and not writing a script, I'm probably first previewing the contents of a file with cat
anyway, and recalling the last command and appending a | grep <pattern>
to it is less keystrokes than re-writing the last command into grep <pattern> <file>
. Especially if you're playing around with the pattern and trying to get it right, it's nice to have the pattern at the end of the line.
load more comments
(1 replies)
python -> Import solver (C) -> Solution
Racket: problem - > #lang solution
Language — person doesn’t know how to properly code in that language — problem.
this post was submitted on 12 Mar 2024
1136 points (100.0% liked)
Programmer Humor
32712 readers
1238 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS