of pattern matching available: matching from the left and matching from the right. The operators, with ... is} Deletes the shortest possible match from the left export $foo="this is a test"
echo ${foo#t*is}
is... *is} Deletes the longest possible match from the left export $foo="this is a test"
echo ${foo##t*is}
a... y have a convenient mnemonic. The # key is on the left side of the $ key on the keyboard and operates fr