1 2 3 4 5 6 7 8
#!/bin/sh # # Generate mostly random string with alphanumerics # # ARGS # $1: num of chars to output, default 14 tr -dc '[:alnum:]' </dev/urandom | head -c "${1:-14}"