Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement