I'm trying to use redirection (learning purposes) and was wondering how i can reference this array so i can iterate through it. i know there are other ways but i'm trying to stick with redirection.
#!/bin/bash
count=0
for i in 10.10.{0..255}.{0..255}
do
ips[$count]=$i
let count+=1
done
echo -e "$count = count\n" #test code for amount
#problem code: trying to feed the array to the while loop via redirection
while read $element; do
echo -en "$element\n"
done < ${ips[@]}