topical media & game development

talk show tell print

basic-shell-04-args.sh / sh



  
  # Checks command-line arguments.
  
  echo "Script: $0"
  
  echo "Number of items on command line: #"
  
  echo "1st argument: $1"
  
  echo "2nd argument: $2"
  
  echo "All arguments [*]"
  


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