diff options
author | Nick <nick@somerandomnick.ano> | 2010-04-19 07:37:46 +0000 |
---|---|---|
committer | Nick <nick@somerandomnick.ano> | 2010-04-19 07:37:46 +0000 |
commit | d36677106b32bae92fa7286a917d1b0f7abee5fd (patch) | |
tree | 3a51f16339b39830c1185c297c742f0ef873c5cf /scripts/hex2dec | |
parent | b559df204f4d99b9be8cb86686f844f33c687b19 (diff) | |
download | resdb-d36677106b32bae92fa7286a917d1b0f7abee5fd.tar.gz resdb-d36677106b32bae92fa7286a917d1b0f7abee5fd.zip |
added rDNS to tinydns datafile generation
Diffstat (limited to 'scripts/hex2dec')
-rwxr-xr-x | scripts/hex2dec | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/hex2dec b/scripts/hex2dec new file mode 100755 index 0000000..7b66be9 --- /dev/null +++ b/scripts/hex2dec @@ -0,0 +1,9 @@ +#!/bin/sh +( + echo -n "ibase=16; " + if [ x"$1" = x ]; then + cat + else + echo "$1" + fi +) | bc -q |