#!/usr/bin/env sh length=60 if [ -n "$1" ]; then length=$1 fi cat /dev/urandom | tr -d -c "[:alnum:]" | fold -w${length} | head -1