I know that we can convert hex to dec in bash using
#!/bin/bash
echo "Type a hex number"
read hexNum
echo $(( 16#$hexNum ))
but when I run it with hexNum=9b4bbba36e494bcd, it gives me -7256500063973061683 i.e negative value, which is 2's complement.
I don't want it's 2 complement. I want output for hexNum=9b4bbba36e494bcd as 11190244009736489933. As given on https://www.rapidtables.com/convert/number/hex-to-decimal.html?x=9b4bbba36e494bcd
How can I get this output using bash? Please help!