title: How can i convert a hex IP address to dotted decimal notation
body: <p>Hi i have a file with IP addresses stored as </p>
  
  <pre><code>ssIpAddress: AC1AF0F1
  .
  .
  .
  ssIpAddress: AC1AF011
  </code></pre>
  
  <p>and so on,</p>
  
  <p>i am using awk to find and print this as follows,</p>
  
  <pre><code>awk '
  /ssIpAddress/ {
  str = sprintf("0x%s", $2)
  ssIp = strtonum(str)
  printf ("%d.%d.%d.%d\t",
  rshift(and(ssIp,0xff000000),24),
  rshift(and(ssIp,0x00ff0000),16),
  rshift(and(ssIp,0x0000ff00),08),
  rshift(and(ssIp,0x000000ff),00))
  }' &lt;file&gt;
  </code></pre>
  
  <p>when i try this i get illegal syntax error. Can anyone identify the error with the syntax?</p>