summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-10-03 22:09:01 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-10-03 22:09:01 +0200
commit5be4d3d391d153aa86037eddea66573485b5a4f0 (patch)
tree3692abef7868ac186703603ef8bd88fca98a7872
parent72bfb1db4b6edbcb2711fa68c158cbc88ced6db6 (diff)
downloadbin-5be4d3d391d153aa86037eddea66573485b5a4f0.tar.gz
bin-5be4d3d391d153aa86037eddea66573485b5a4f0.tar.xz
add todec
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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 ))