view scripts/hex2dec @ 610:2e337ecdfacd draft

fixed d3v11* domains Merge commit '36678f0b96a9927354a44197113062802b826528' Conflicts: doc/www.anonet2.org/public_pod/index.pod
author Nick <nick@somerandomnick.ano>
date Wed, 14 Sep 2011 02:38:19 +0000
parents 523b9c533d6c
children 2f57d4d36759
line wrap: on
line source

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