Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #check for argument
- if [ $# -lt 1 ]; then
- echo "Usage: $0 name(s)"
- exit 1
- fi
- #loop through all arguments
- while (($#)); do
- echo "Hello $1"
- shift
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement