Hi Folks,

I have a loop that goes through an array and the output is funky.

sample:
array=( 19.239.211.30 )
for i in "${array[@]}"
do
echo $i
iperf -c $i -P 10 -x CSV -f b -t 50 | awk 'END{print '$i',$6}' >> $file
done

Output:
19.239.211.30
19.2390.2110.3 8746886

seems that when the $i after the awk is printed something happens to it.

Any ideas?

Thanks.