view scripts/hex2dec @ 537:8e8a01a680b4 draft

peer2anonet changes made: * parse quicktun.keypair</dev/random directly to seckey variable. * removed y/n questions with file tests and automatic configuration. * README file updated * ported for autoconfig file pipes * some security checks created
author d3v1150m471c <d3v11@d3v1150m471c.ano>
date Sun, 10 Jul 2011 07:16:47 -0500
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
)