title: How to make calculations on hexadecimal numbers with awk?
body: <p>I have a file containing a list of hexadecimal numbers, as <code>0x12345678</code> one per line.</p>
  
  <p>I want to make a calculation on them. For this, I thought of using <code>awk</code>. But if printing an hexadecimal number with <code>awk</code> is easy with the <code>printf</code> function, I haven't find a way to interpret the hexadecimal input other than as text (or <code>0</code>, conversion to integer stops on the <code>x</code>).</p>
  
  <pre><code>awk '{ print $1; }'                     // 0x12345678
  awk '{ printf("%x\n", $1)}'             // 0
  awk '{ printf("%x\n", $1+1)}'           // 1                 // DarkDust answer
  awk '{ printf("%s: %x\n", $1, $1)}'     // 0x12345678: 0
  </code></pre>
  
  <p>Is it possible to print, e.g. the value +1?</p>
  
  <pre><code>awk '{ printf(%x\n", ??????)}'          // 0x12345679
  </code></pre>
  
  <p><em>Edit</em>: One liners on other languages welcomed! (if reasonable length ;-) )</p>