I am trying to reverse a hexadecimal number in Bash or any other shell.
For example, I want to reverse the hexadecimal number 4BF8E and the answer should be 71FD2, i.e bitwise reversal.
echo 4BF8E | rev | tr '0123456789ABCDEF' '084C2A6E195D3B7F'
Explanation:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With