1 2 3 4 5 6 7
#!/bin/sh set -eu ROUNDED="$(round "$1")" MINUTES=$((ROUNDED / 60)) SECONDS=$((ROUNDED % 60)) printf '%sm%ss\n' "$MINUTES" "$SECONDS"