Guest User

Untitled

a guest
May 20th, 2018
112
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. i=0;
  3. for thing in "$@";
  4. do
  5.     i=$((i+1))
  6.     variable[i]="${thing}"
  7.     maxi="$i"
  8. done
  9. echo $maxi
  10.  
  11. for ((i=1;i<=$maxi;i+1))
  12. do
  13.    echo "$variable[i]";
  14.    i="$i+1"
  15. done
Add Comment
Please, Sign In to add comment