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