Created
September 16, 2020 06:38
-
-
Save evmn/fa0667c401f69af8012c336e440fad82 to your computer and use it in GitHub Desktop.
generate 30 uuid
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
#!/bin/bash | |
cat /dev/urandom | \ | |
tr -dc "a-f0-9"| \ | |
fold -w 36 | \ | |
head -n 30 | \ | |
sed -E -e 's/(.{8}).(.{4}).(.{4}).(.{4}).(.*)/\1-\2-\3-\4-\5/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment