uuidgen in lowercase on Mac OS X
uuidgen is a command line tool to generate UUIDs.
On Linux this command returns a lowercase string of a UUID.
But on Mac OS X it returning an uppercase string of a UUID.
So how to change this ?
I have created a simple alias as following:
uuidgen='uuidgen | tr "[:upper:]" "[:lower:]"'
Now executing uuidgen
will output the following:
0ba34ef2-438a-4635-8f8b-86edec6aefdf
Simple :)
Written by Guillaume Hain
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Console
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#