#!/bin/sh if [ -z "$1" ] ; then echo "usage: $0 [length]" >&2 exit 1 fi LC_ALL=C tr -dc '[:alnum:]'