Bash shell script to convert Decimal to Hexadecimal and Octal
kw.sh
#!/bin/bashecho"———————————————————————————————————————————"echo"Script to convert Dec To Hex and Oct number"echo"———————————————————————————————————————————"a=65535
echo-n"Decimal="$aprintf"\nOctal="%o $aprintf"\nHexadecimal="%x $aecho-e"\n———————————————————————————————————————————"
Output
kodingwindow@kw:~$ bash kw.sh
———————————————————————————————————————————
Script to convert Dec To Hex and Oct number
———————————————————————————————————————————
Decimal=65535
Octal=177777
Hexadecimal=ffff
———————————————————————————————————————————
kodingwindow@kw:~$
Dear User, Thank you for visitng Kodingwindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.
Dear User, We are grateful for your interest in the Kodingwindow Android app. We intend to soon make it available on the Google Play Store. Currently, Android versions 10 and up require manual apk installations. Would you like to get the app?