Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- i=0;
- for thing in "$@";
- do
- i=$((i+1))
- variable[i]="${thing}"
- maxi="$i"
- done
- echo $maxi
- for ((i=1;i<=$maxi;i+1))
- do
- echo "$variable[i]";
- i="$i+1"
- done
- $ ./recherche.sh cc gsgs tze zt
- 4
- [i]
- [i]
- [i]
- [i]
Add Comment
Please, Sign In to add comment