daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Dec 13th, 2012 22 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. ARGCOUNT=$#
  3. echo "ARGCOUNT is $ARGCOUNT"
  4. if [ $# -ne 0 ]
  5. then
  6.  i=0
  7.  while [ $i -ne $ARGCOUNT ]
  8.  do
  9.  ((i=i+1))
  10.  echo "Arguements were: ${!i}"
  11.  done
  12. else
  13. echo "Nothing passed in... why not?!"
  14. fi
RAW Paste Data
Top