n=0 hex=0 echo "Decimal to hexadecimal converter ver. b0.1" echo -n "Enter number in decimal format : " read n hex=`echo "obase=16;ibase=10; $n" | bc` echo "$n is equivalent \"$hex\" in hexadecimal"
Linux / PRACTICAL TUTORIAL
Decimal to hexadecimal converter in Shell Script
Advertisement
This shell script converts decimal to hexadecimal.
From the community
No archived comments on this tutorial.