方法一:利用grep查找strA="long string" strB="string" result=$(echo $strA | grep "${strB}") if [[ "$result" != "" ]] then echo "包含" else echo &quo...
时光匆匆,记录是对思维的沉淀.
方法一:利用grep查找strA="long string" strB="string" result=$(echo $strA | grep "${strB}") if [[ "$result" != "" ]] then echo "包含" else echo &quo...