Create unique random numbers (UUIDs) in bash
29
votes
4
answers
49717
views
I want to create random unique numbers (UUIDs) as the following
node.id=ffffffff-ffff-ffff-ffff-ffffffffffff
First I tried this
$ rndnum=
echo $RANDOM"-"echo $RANDOM"-"echo $RANDOM"-"echo $RANDOM"-"echo $RANDOM
$ echo $rndnum
30380-echo 21875-echo 14791-echo 32193-echo 11503
What is the right way to create the following (where f
is any number)?
ffffffff-ffff-ffff-ffff-ffffffffffff
Asked by yael
(13936 rep)
Feb 14, 2019, 09:34 AM
Last activity: Jul 1, 2024, 03:48 PM
Last activity: Jul 1, 2024, 03:48 PM