X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/17d7b80328e653a7d65c4aac24c4f8173409c321..0d22dfcdb7eab1975d56ed36967885707470c828:/user/bkhextobin?ds=inline diff --git a/user/bkhextobin b/user/bkhextobin new file mode 100755 index 0000000..39a7ae0 --- /dev/null +++ b/user/bkhextobin @@ -0,0 +1,5 @@ +#!/bin/bash +echo "type a hex number" +read hexNum +echo -n "The binary value of $hexNum=" +echo "obase=2; ibase=16; $hexNum" | bc