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

if [ -z $1 ] ; then
    echo Usage: $0 "{decimal number}"
else
    printf "%X\n" $1
    # printf "%x\n" $1 # if you want lower case a-f
fi