#!/bin/bash # A script that outputs a random 8-digit hexadecimal number to stdout. LC_ALL=C tr -dc "0123456789abcdef" < /dev/urandom | head -c ${1:-8}