ble:
Operator Function Example
${foo#t*is} Deletes the shortest possible match from the left expo... est"
echo ${foo#t*is}
is a test
${foo##t*is} Deletes the longest possible match from the left expor... a test"
echo ${foo##t*is}
a test
${foo%t*st} Deletes the shortest possible match from the right exp... est"
echo ${foo%t*st}
this is a
${foo%%t*st} Deletes the longest possible match from the right expo