tcler's blog --- 其实我是一个程序员
Show me your flowcharts and conceal your tables, and I shall continue to be mystified. Show me your tables, and I won’t usually need your flowcharts; they’ll be obvious.

bash 中找 substring

[[]] 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