topical media & game development

talk show tell print

basic-shell-03-counter2.sh / sh



  
  # Counts by looping for a fixed number of times
  
  # Note do on same line requires semicolon.
  
  for i in 1 2 3 4 5 6 7 8 9 10; do
      echo -n "...i"
  done
  
  echo    # Output newline
  


(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.