generate uuidv4 in macos terminal
You can generate a uuidv4 in MacOS terminal by using the following command:
uuidgen | tr '[:upper:]' '[:lower:]'
This command makes use of the uuidgen
command which is built into MacOS to generate a uuid, then pipes the output to the tr
command to convert it to lowercase, as a uuidv4 is typically represented in lowercase.