Bash string functions

Useful String manipulation commands

https://www.thegeekstuff.com/2010/07/bash-string-manipulation/


#shortest substring match 
${string#substring}

#shortest substring match (backwards)
${string%substring}