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