bash 中找 substring
12 Sep 2017[[]] wildcard
[[ "$string" == *"$substring"* ]] && echo match
[[]] regex
[[ "$string" =~ $substring ]] && echo match
without [[]]
[ -z "${string/*$substring*/}" ] && echo match
stackoverflow
https://stackoverflow.com/questions/229551/string-contains-in-bash