> > unit=`printf %02x $ounit`
> One problem is that printf is dynamically linked and on /usr...
How about this:-)
prhex2()
{
val=$1
set 0 1 2 3 4 5 6 7 8 9 a b c d e f
shift $(($val/16))
echo -n $1
set 0 1 2 3 4 5 6 7 8 9 a b c d e f
shift $(($val%16))
echo $1
}
Atsushi