Converting Minutes and Seconds to Seconds in a BASH Script

Recently I had a need to calculate  seconds out of minutes and seconds. The BASH script below will take two integer arguments separated by a space and return a value in seconds.



echo $seconds

Leave a Reply

Your email address will not be published. Required fields are marked *