Mercurial > hg > anonet-resdb
annotate 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 |
rev | line source |
---|---|
13
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
1 #!/bin/sh |
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
2 ( |
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
3 echo -n "ibase=16; " |
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
4 if [ x"$1" = x ]; then |
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
5 cat |
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
6 else |
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
7 echo "$1" |
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
8 fi |
059b5f3d7808
added rDNS to tinydns datafile generation
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
9 ) | bc -q |