Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 May 2000 14:04:48 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        "TEMPLE, MATTHEW (LNG)" <matthew.temple@lexis-nexis.com>
Cc:        "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: uuidgen or other GUID-generating utility
Message-ID:  <20000524140448.A15434@dan.emsphone.com>
In-Reply-To: <27E4B476932BD211945B00805FE67AF5089DE1D9@lnxdayexch05.lexis-nexis.com>; from "TEMPLE, MATTHEW (LNG)" on Wed May 24 13:58:20 GMT 2000
References:  <27E4B476932BD211945B00805FE67AF5089DE1D9@lnxdayexch05.lexis-nexis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 24), TEMPLE, MATTHEW (LNG) said:
> I need a globally unique ID, like 28eea00e-a872-491e-8848-a9b8daf3314b.
> Linux and Solaris have a utility called uuidgen that spits them out.

Solaris doesn't have anything like that (on 2.6 at least), and Linux's
uuidgen simply generates a random string.

This should do what you want:

printf "%s%s-%s-%s-%s-%s%s%s\n" `jot -r -w "%04x" 8 0 65536`

-- 
	Dan Nelson
	dnelson@emsphone.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000524140448.A15434>