bashでカウントダウン

#/bin/bash

function countDown() {
  start=1
  end=120
  echo "please wait $end seconds"
  while [[ $start -le $end ]]; do
    echo $(($end-$start))
    sleep 1
    start=$(($start+1))
  done
}

countDown