From 5be4d3d391d153aa86037eddea66573485b5a4f0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 3 Oct 2011 22:09:01 +0200 Subject: add todec Signed-off-by: Florian Pritz --- todec | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 todec (limited to 'todec') 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 )) -- cgit v1.2.3-24-g4f1b