Get the characters after the last index of a substring from a string
If the string is in a variable: $ foo=”header. stuff. more stuff” $ echo “${foo##*. }” more stuff If there are multiple instances of “. ” (as in my example) and you want everything after the first occurrence, instead of the last, just use one #: $ echo “${foo#*. }” stuff. more stuff