Guest User

bash.sh

a guest
Oct 31st, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. #!/bin/bash
  2. echo ${BASH_VERSION}
  3. echo "Broj argumenata je $# "
  4. echo "Poslednji argument je \"${!#}\" "
  5.  
  6. max=$#
  7. for (( i=1; i<=max; i++))
  8. do
  9.     num=${!i}
  10.     printf "$num "
  11. done
  12. echo
Advertisement
Add Comment
Please, Sign In to add comment