SH: function for making random passwords
## put this into your ~/.bashrc file and make random passwords as needed.
##
## usage:
## mkpw <length>
##
## ex: for for i in $(seq 5);do mkpw 10 ; done
## Rw3QPaeUM2
## qPgQnx5K38
## wZnOZjQsdN
## H0tcr1tVrQ
## w3xnyY00lp
mkpw()
{
[ $# -eq 0 ] && len=16 || len="$1"
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w "$len" | head -1
}