Need some help with my custom bash code

Hey,

The code below checks with the file called ips.info and lists the IPs for a reversedns DNS entry.
It works if all the IPs are from the same subnet but if the Main IP is from a different subnet it just misses out the Main IP.

Quant=0
for Ip in $Ips
do
  echo "$Reverso$Quant   IN   A   $Ip" >> $ArqNamed 
  Quant=`expr $Quant + 1`
done
echo " " >> $ArqNamed

if [ $IpsQuant -gt 8 ]
then
sed -i "/$Reverso\0/d" $ArqNamed
fi
Code (markup):
For some reason it's missing out the Main IP from...

Need some help with my custom bash code

from Programming http://ift.tt/1Q4UQKA
via IFTTT
Previous
Next Post »
Thanks for your comment