I\'m trying to extract the time from a string using bash, and I\'m having a hard time figuring it out.
My string is like this:
US/Central - 10:26 PM
Quick 'n dirty, regex-free, low-robustness chop-chop technique
string="US/Central - 10:26 PM (CST)" etime="${string% [AP]M*}" etime="${etime#* - }"