script de shell para subtrair dois valores hexadecimais

echo A000 1000 | dc -e '16o16i?+p'
Prickly Platypus