dotfiles/tools/genpasswd

5 lines
96 B
Text
Raw Normal View History

2015-12-12 07:56:13 +00:00
#!/bin/bash
l=$1
2016-09-18 13:58:16 +01:00
[ "$l" == "" ] && l=32
2015-12-12 07:56:13 +00:00
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs