Bash arrays that compare ip addresses.

view story

http://www.unix.com – I've been trying to have an array of ip addresses go through a loop one at a time. Then compare if the current element is in another array of ip addresses. I've traced my error with /bin/bash -x Code: + for c in '"${ip[@]}"' ./netk5: line 65: syntax error: invalid arithmetic operator (error token is ".17.231.23") From what I found on Google it seems Bash isn't great at comparing floating point numbers. I saw some sugg (HowTos)