How do I test (in one line) if command output contains a certain string?
Asked 2012-09-11T18:27:54.937
96
In one line of bash, how do I return an exit status of 0 when the output of /usr/local/bin/monit --version doesn't contain exactly 5.5 and an exit status of 1 when it does?