3 ms·
Honorable mention for `-q`, which is useful in shell scripts when you don't want the output, just the result code.
by tptacek 5y ago
Honorable mention for `-q`, which is useful in shell scripts when you don't want the output, just the result code.
- cjcampbell 5y agoI am a big fan of the `if [!] grep -q ...` pattern. I'd probably rank -q near the top of the list for shell scripts.