i am searching on these forums and trying different codes, but i cant seem to get it working:
i have a variable
ip="192.168.1.227 192.168.1.205 192.168.1.217"
no i want to split every ip address up in to different variables
ip1=192.168.1.227 ip2=192.168.1.205 ip3=192.168.1.217
i was trying to do something with word
for ((word in $vds; i=0; i++)); do echo $word "ip$i"=$word done
but i cant get it working.
for
loop syntax.