dotfiles2/base/bin/genpw
2022-08-05 22:16:17 -07:00

10 lines
153 B
Bash
Executable file

#!/bin/sh
if [ -z "$1" ] ; then
echo "usage: $0 [length]" >&2
exit 1
fi
LC_ALL=C tr -dc '[:alnum:]' </dev/urandom | \
fold -w$1 | head -n1