string=b
varlible=abcabcabc
${varible##*string } varlible=abcabcabc
从左向右截取最后一个string后的字符串
${varible#*string} varlible=abcabcabc
从左向右截取第一个string后的字符串
${varible%%string*} varlible=abcabcabc
从右向左截取最后一个string后的字符串
${varible%string*} varlible=abcabcabc
从右向左截取第一个string后的字符串
varlible=abcabcabc
${varible##*string } varlible=
${varible#*string} varlible=
${varible%%string*} varlible=a
${varible%string*} varlible=abcabca