Hacker News new | ask | show | jobs
by tptacek 1595 days ago
Honorable mention for `-q`, which is useful in shell scripts when you don't want the output, just the result code.
1 comments

I am a big fan of the `if [!] grep -q ...` pattern. I'd probably rank -q near the top of the list for shell scripts.