Skip to content

Instantly share code, notes, and snippets.

@iilei
Last active February 20, 2021 17:00
Show Gist options
  • Save iilei/df6fcd806f4ca2dab2f9b85764e284d3 to your computer and use it in GitHub Desktop.
Save iilei/df6fcd806f4ca2dab2f9b85764e284d3 to your computer and use it in GitHub Desktop.
Generate Distinguishable Random Tokens
for ((i=0;i<20;i++)); do uuidgen; done | \
tr -dc 'AC-HJ-NP-RTZ2-46-79' | \
fold -w 10 | \
head -n 20 | \
sed 's/^\(.\{4\}\)/\1-/'
@iilei
Copy link
Author

iilei commented Oct 3, 2020

Example output:

9FFC-42D3D4
43EE-334249
DD33-44F2EA
224A-3973A6
73AE-34ACD6
7AE4-EE2AA4
ACED-2A972E
6EF4-79FC24
E742-426FE9
3924-E34C4C
4CF3-9C97AE
9CAA-44D6A9
D9EA-D7D6F7
7444-2D443E
62FC-623362
4FDA-D343DD
F94A-9AA22C
964E-FF4392
E444-4E63E3
2C67-D4C634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment