Created
March 23, 2021 12:39
-
-
Save meng-jiajun/abf1b2aa3553bbe0ca2aed1ec10f91db to your computer and use it in GitHub Desktop.
generate uuid in bash
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 | |
# way 1 | |
psd="/proc/sys/kernel/random/uuid" | |
echo $(cat $psd) | |
# way 2 | |
UUID=$(cat /proc/sys/kernel/random/uuid) | |
echo $UUID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment