#!/bin/sh
# hex2bin --  hex to binary conversion.
#

(D=$[0x$1];for S in 128 64 32 16 8 4 2 1;do { d=0;[ $[$D-$S] -ge 0 ]&&{ d=1;D=$[$D-$S]; };T=$T$d; };done;echo $T)
