shell script to subtract two hex values code example Example: shell script to subtract two hex values echo A000 1000 | dc -e '16o16i?+p'