if [[ "\"$*\"" =~ apache2 ]] || [[ "\"$*\"" =~ php-fpm ]]; then echo "match"; done # test for string in any argument position #bash #regex #test
Dave Rahardja liked this on twitter.com.
iamroot reposted this on twitter.com.
iamroot liked this on twitter.com.