summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtodec6
1 files changed, 6 insertions, 0 deletions
diff --git a/todec b/todec
new file mode 100755
index 0000000..b463d0e
--- /dev/null
+++ b/todec
@@ -0,0 +1,6 @@
+#!/bin/bash
+#
+# convert number ($2) from base ($1) to decimal
+#
+
+echo $(( $1#$2 ))