#!/bin/sh # pwgen: create passwords using urandom and uuencode. # # Example: # me% pwgen # BAhd/LkY # YRyDAUR4 # MwxCXH8O # 5XJPlBn7 # ix3fgaCr # LpmVYIBP # CLQ7xfmb # WnINDFj4 # ajFokZ5y PATH=/bin:/usr/bin export PATH # portability: uuencode might need options "-m -" to read stdin. dd if=/dev/urandom count=1 2> /dev/null | uuencode - | sed -n '2,10p' | cut -c2-9 exit 0