Created
October 10, 2019 09:32
-
-
Save ultim8k/77bb92b75aa10652a64b30bc4628ca5e to your computer and use it in GitHub Desktop.
Generate UUID in BASH/ZSH
This file contains hidden or 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
### Source: https://coderwall.com/p/t_sz3q/generate-uuid-at-shell-prompt | |
# alias uuid="python -c 'import sys,uuid; sys.stdout.write(str(uuid.uuid4()))' | pbcopy && pbpaste && echo" | |
alias uuid="uuidgen | tr -d '\n' | tr '[:upper:]' '[:lower:]' | pbcopy && pbpaste && echo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment