title: Comparing two IP Addresses in Bash
body: <p>I am trying to find if two ip addresses are the same or not. I admit that I am new with bash, but I see no reason this would not work:</p>
  
  <pre><code>if [[ "$IPAddress" != "$OLDIPAddress" ]]
  then
    echo "IP Not the Same"
  else
    echo "IP Same"
  fi
  </code></pre>
  
  <p>For testing purposes, I have even hard coded the values for the two variables, and they still don't show up as the same. I know you don't always see your own typos, but I do not see why this would not work. Any ideas?</p>