index
:
bin
master
My scripts
Florian Pritz
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
todec
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'todec')
-rwxr-xr-x
todec
6
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 ))