Comment on Grep flags – the good stuffComments−tptacek4yHonorable mention for `-q`, which is useful in shell scripts when you don't want the output, just the result code.−cjcampbell4yI am a big fan of the `if [!] grep -q ...` pattern. I'd probably rank -q near the top of the list for shell scripts.
Comments
Honorable mention for `-q`, which is useful in shell scripts when you don't want the output, just the result code.
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.