Created
August 15, 2022 04:35
-
-
Save dwisiswant0/ff188781cfbfef357e8751e565cae8d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
passgen() { | |
local L | |
[[ -z "${1}" ]] && L="12" || L="$1" | |
</dev/urandom strings | \ | |
grep -o "\S*" | \ | |
tr -d $"\n" | \ | |
head -c "${L}" | |
echo | |
} | |
# passgen $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment