Decimal to Hex

Convert a decimal number to its hexadecimal string representation.

Code

Utilities
printf '%x' "$num"

Parameters

Decimal number to convert.

Server

More Bash Snippets