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
If your string is
foo="US/Central - 10:26 PM (CST)"
then
echo "${foo}" | cut -d ' ' -f3
will do the job.