view scripts/hex2dec @ 13:059b5f3d7808 draft

added rDNS to tinydns datafile generation
author Nick <nick@somerandomnick.ano>
date Mon, 19 Apr 2010 07:37:46 +0000
parents
children 523b9c533d6c
line wrap: on
line source

#!/bin/sh
(
 echo -n "ibase=16; "
 if [ x"$1" = x ]; then
  cat
 else
  echo "$1"
 fi
) | bc -q