]> zdv2.bktei.com Git - BK-2020-03.git/blobdiff - user/bkhextobin
feature(user) Add legacy user scripts
[BK-2020-03.git] / user / bkhextobin
diff --git a/user/bkhextobin b/user/bkhextobin
new file mode 100755 (executable)
index 0000000..39a7ae0
--- /dev/null
@@ -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