about summary refs log tree commit diff stats
path: root/bin/pw
blob: f7fd00ac4bea440710d9fb06966c50b31e820059 (plain) (blame)
1
2
3
#!/bin/sh
# generates a password of length $1.
tr -cd "[:alnum:][:punct:]"</dev/urandom|fold -w "$1"|head -1