title: Ascii/Hex convert in bash
body: <p>I'm now doing it this way:</p>
  
  <pre><code>[root@~]# echo Aa|hexdump -v
  0000000 6141 000a                              
  0000003
  [root@~]# echo -e "\x41\x41\x41\x41"
  AAAA
  </code></pre>
  
  <p>But it's not exactly behaving as I wanted,</p>
  
  <p>the hex form of <code>Aa</code> should be <code>4161</code>,but the output is <code>6141 000a</code>,which seems not making sense.</p>
  
  <p>and when performing hex to ascii,is there another utility so that I don't need the prefix <code>\x</code> ?</p>