Created
July 3, 2024 17:49
-
-
Save ShadSterling/95ca749b625916529af12af9537a8ee2 to your computer and use it in GitHub Desktop.
Revisions
-
ShadSterling created this gist
Jul 3, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/usr/bin/env bash # from https://gist.github.com/earthgecko/3089509#gistcomment-1219444 count=$1 if [ "" == "$count" ]; then count=64 fi LC_CTYPE=C tr -dc A-Za-z0-9 < /dev/urandom | fold -w ${1:-$count} | head -n +1