diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-10-03 22:09:01 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-10-03 22:09:01 +0200 |
commit | 5be4d3d391d153aa86037eddea66573485b5a4f0 (patch) | |
tree | 3692abef7868ac186703603ef8bd88fca98a7872 /todec | |
parent | 72bfb1db4b6edbcb2711fa68c158cbc88ced6db6 (diff) | |
download | bin-5be4d3d391d153aa86037eddea66573485b5a4f0.tar.gz bin-5be4d3d391d153aa86037eddea66573485b5a4f0.tar.xz |
add todec
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'todec')
-rwxr-xr-x | todec | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -0,0 +1,6 @@ +#!/bin/bash +# +# convert number ($2) from base ($1) to decimal +# + +echo $(( $1#$2 )) |