topical media & game development

talk show tell print

basic-shell-03-sleep-counter.sh / sh



  
  # Counts backwards and waits each loop interations.
  
  for i in 10 9 8 7 6 5 4 3 2 1
  do
      echo -n "i... "
      sleep 1
  done
  
  echo    # Output new line
  echo "Blast off!"
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.