Skip to content

Instantly share code, notes, and snippets.

@evmn
Created September 16, 2020 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evmn/91ccf7cafb6f961ae9f063578dbbe476 to your computer and use it in GitHub Desktop.
Save evmn/91ccf7cafb6f961ae9f063578dbbe476 to your computer and use it in GitHub Desktop.
for i in {1..10}
do
cat /dev/urandom | \
tr -dc "a-f0-9"| \
fold -w 36 | \
head -n 1 | \
sed -E -e 's/(.{8}).(.{4}).(.{4}).(.{4}).(.*)/\1-\2-\3-\4-\5/' | \
sed -E -e 's/(.{14}).(.*)/\14\2/' | \
sed -E -e "s/(.{19}).(.*)/\1$(shuf -n 1 -e 8 9 a b)\2/"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment