Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- declare -a arr
- x=0
- chuj="test"
- while [ "$x" -ne 5 ]
- do
- echo "podaj wartosc"
- read chuj
- if [ -n "$chuj" ]
- then
- arr[$x]=$chuj
- echo ${arr[$x]}
- fi
- x=$(($x+1))
- echo $x
- done
- clear
- i=0
- while [ "$i" -ne 5 ]
- do
- echo ${arr[$i]}
- i=$(($i+1))
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement