How to perform bitwise operations on hexadecimal numbers in bash?
<p>In my <code>bash</code> script I have a string containing a hexadecimal number, e.g. <code>hex="0x12345678"</code>. Is it possible to treat it as a hex number and do bit shifting on it?</p>