I have a nginx -V 2>&1 | \grep -qi 'nginx/1.9.10\|ngx_pagespeed-release-1.9.32.10\|openssl-1.0.2f\|modsecurity-2.9.0' \&& echo has the stuff we need \|| echo missing somethingwhich is going against[root@mage2appblock vagrant]# nginx -Vnginx version: nginx/1.9.10built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)built with OpenSSL 1.0.2f  28 Jan 2016TLS SNI support enabledconfigure arguments: --user=www-data --group=www-data--prefix=/etc/nginx --sbin-path=/usr/sbin/nginx--conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid--lock-path=/var/lock/subsys/nginx--error-log-path=/var/log/nginx/error.log--http-log-path=/var/log/nginx/access.log--http-client-body-temp-path=/var/cache/nginx/client_temp--http-proxy-temp-path=/var/cache/nginx/proxy_temp--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp--http-scgi-temp-path=/var/cache/nginx/scgi_temp--add-module=/src/nginx/ngx_pagespeed-release-1.9.32.10-beta--add-module=/src/nginx/modsecurity-2.9.0/nginx/modsecurity --with-http_auth_request_module --with-http_sub_module --with-http_mp4_module --with-http_flv_module --with-http_addition_module --with-http_dav_module--with-http_gunzip_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_ssl_module --with-openssl=/src/nginx/openssl-1.0.2f --with-sha1=/usr/include/openssl--with-md5=/usr/include/openssl --with-pcre --with-ipv6 --with-file-aio --with-http_realip_module --without-http_scgi_module --without-http_uwsgi_moduleSeems that if I change the substrings from'nginx/1.9.10\|ngx_pagespeed-release-1.9.32.10\|openssl-1.0.2f\|modsecurity-2.9.0'to'nginx/1.9.10\|ngx_pagespeed-release-1.9.32.10\|openssl-1.0.2f\|modsecurity-2.9.1'I still get has the stuff we need even though not everything was present.  I need to match all or nothing.  
grep match multiple substrings and pass or fail on missing
command line;grep
Work with a little modification:[ $(nginx -V 2>&1 |     grep -cFf <(        echo 'nginx/1.9.10ngx_pagespeed-release-1.9.32.10openssl-1.0.2fmodsecurity-2.9.0'    )) -eq 4 ] &&echo has the stuff we need ||echo missing something