summaryrefslogtreecommitdiff
path: root/scripts/hex2dec
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2010-04-19 07:37:46 +0000
committerNick <nick@somerandomnick.ano>2010-04-19 07:37:46 +0000
commitd36677106b32bae92fa7286a917d1b0f7abee5fd (patch)
tree3a51f16339b39830c1185c297c742f0ef873c5cf /scripts/hex2dec
parentb559df204f4d99b9be8cb86686f844f33c687b19 (diff)
downloadresdb-d36677106b32bae92fa7286a917d1b0f7abee5fd.tar.gz
resdb-d36677106b32bae92fa7286a917d1b0f7abee5fd.zip
added rDNS to tinydns datafile generation
Diffstat (limited to 'scripts/hex2dec')
-rwxr-xr-xscripts/hex2dec9
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