Skip to content

Instantly share code, notes, and snippets.

@meng-jiajun
meng-jiajun / generate_uuid
Created March 23, 2021 12:39
generate uuid in bash
#!/bin/bash
# way 1
psd="/proc/sys/kernel/random/uuid"
echo $(cat $psd)
# way 2
UUID=$(cat /proc/sys/kernel/random/uuid)
echo $UUID