I have the below shell script
for ip in 'cat $FILE'
i='expr $i + 1'
/sbin/ifconfig eth0:$i $ip netmask 255.255.255.0
/sbin/route add $ip eth0:$i
This should go through a fileand bind each line (IP) to the eth0. However its not working. I believe the script is fine but how should I call it from the terminal?