title: convert hexadecimal number to decimal whith shell script
body: <p>I need to convert a number from hexadecimal form to decimal form using shell script </p>
  
  <p>for example :</p>
  
  <pre><code>convert()
  {
      ...
      echo x=$decimal
  }
  </code></pre>
  
  <p>result :</p>
  
  <pre><code>convert "0x148FA1"
  x=1347489
  </code></pre>
  
  <p>How to do it?</p>