> > Well I just want a loop, that does the following: > IPOctet=$(echo "$ServerIPRange/$epcrange+$IPOctet" | bc)
as you can see IPOctet is added to $ServerIPRange/$epcrange and the result is SAVED in IPOctet In each loop IPOctet is is say incremented by "x" and the result is saved in IPOctet again What happens: The loop runs the number of times but saves the same value in each loop iteration. eg: IPOctet="5" ServerIPRange="16" epcrange="2" IPOctet= 5 + 16/2 = 13 In the next iteration the result should be IPOctet= 13 + 8 = 21 //But what happens is that IPOctet stays constant at "13" In the third iteration the result should be IPOctet= 21 + 8 = 29 //IPOctet is doesn't change, reamins 13 and will remain 13 no matter how many iterations of the loop are run I hope I have got my point across. Now any suggestions on the solution ? > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/63f72816-130a-461e-a550-3765e82dcb85%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
