title: How to translate seconds to minutes & seconds in Bash?
body: <p>I have a Bash script that downloads files from a website through it's API, and I wanted to implement a thing (for a lack of better words) at the end that would display how long it took for the script to complete. With this code, I was able to do it:</p>
  
  <pre><code>#!/bin/bash
  SECONDS=0
  
  # -- Code to Execute --
  
  echo "Task complete"
  echo "Script completed in $(echo "scale=2; $SECONDS / 60" | bc) minutes"
  </code></pre>
  
  <p>However, this would display the time the script took to execute in fractions of a minute:</p>
  
  <pre><code>Task complete
  Script completed in 1.35 minutes
  </code></pre>
  
  <p>How would I be able to translate the amount of seconds the script took to complete into minutes and seconds? Like this:</p>
  
  <pre><code>Task complete
  Script completed in 1 minute and 12 seconds
  </code></pre>