In bash, how do I get a substring of everything from the first occurrence of a character to the second …