title: How to print ASCII value of a character using basic awk only
body: <p>I need to print the ASCII value of the given character in awk only.</p>
  
  <p>Below code gives <code>0</code> as output:</p>
  
  <pre><code>echo a | awk '{ printf("%d \n",$1); }'
  </code></pre>