#!/bin/bash
# url: http://pank.org/scripts/
# description: convert hexadecimal number to decimal
# comment: bash
# platform: all

if [ -z $1 ] ; then
    echo Usage: $0 "{hex number}"
else
    echo $((0x$1))
fi