topical media & game development

talk show tell print

basic-shell-extra-10-arguments.sh / sh



  #!/bin/sh
  
  arg ()
  {
          echo "Number of arguments: #"
          echo "Name of script: $0"
          echo "First argument: $1"
          echo "Second argument: $2"
          echo "Third argument: $3"
          echo "All the arguments: @"
  }
  
  arg no yes maybe
  


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