What\'s an easy way to convert 00:20:40.28 (HH:MM:SS) to seconds with a Bash script?
00:20:40.28
Split seconds can be cut out, it’s not essential.
Try awk. As a bonus, you can keep the split seconds.
awk
echo "00:20:40.25" | awk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }'