倒计时

  1. #!/usr/bin/bash
  2. for time in `seq 9 -1 0`;do
  3. echo -ne "$time\b"
  4. sleep 1
  5. done
  6. echo