#!/bin/bash sec=$1; hour=$[ $sec / 3600 ] if [ $hour -gt 0 ] then tt=$[ $hour * 3600 ] sec=$[ $sec - $tt ] echo -n "$hour hour " fi minute=$[ $sec / 60 ]