I was reading the grep man page and came across the -q option, which tells grep to "not write anything to standard output. Exit immediately with zero status if any match is found, even if an error was detected."
I don't understand why this could be desirable or useful behavior. In a program who's reason d'etre seems to be read from stdin, process, write to stdout, why would I want to silence it completely?
In what case would silencing a program whose goal it is to output things be useful? Why would someone want to entirely ignore errors and force a successful return code?
Thanks!