From nobody Sat Apr 27 18:55:20 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VRf145NRDz5Jg2v; Sat, 27 Apr 2024 18:55:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VRf144sNbz4n8b; Sat, 27 Apr 2024 18:55:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714244120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GXXN3EsqW0/5RddiVjDBZ+d8djSiJpV+pUehKFyAMYU=; b=sy9LaObxtHUzTRyHMSH06wBUmPXFe+5X/M7MuCPs/n/Al2A7IFOQ/92w5U7/qFzkfKqZEZ iixBxcCF6PIk04p/gUk04XVDrwtNglIQtNNSpx6iXQolJY4FtBONfKchFj8G3+DPjnuP2Q +D2SJfbr2/UC+0DDYsyFdd3GtIAGwAnUtVMlow7JaLrXnmib1EnVXCTcCUGT2aR8hi6ynm r2kPaZdq+QaH6Aaix00wFAVHczJzsOfI7n2r5yohvLtVbluz14PokYYE5hIsCZrDdUr4lF D994C5Chweh8EF4I8ra4eLftbuf0gkWo/6Me1sdutZ+hwQcqQyockyWMP9rzsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714244120; a=rsa-sha256; cv=none; b=V3MVuE8JL5z0YjPmYjR851NqkHe2xKS5d3MUxJ7twQ9+jJQSKQct/m5InwFaT5L2pyPR/n 8u+JOf97f7m/fjLJ6um68wxtL2Q7NXMLzzWJmCURCjOjKbu2Y723Rb8LP3riMNXKw5sUnW EDtQ+1NhaMVTOI+lM1inc4FdepwVoY0uO+HuXbgNnx4n05pC5+hR2rrA2Y8BR06z7QcVk8 ZNnH6VbKigF61gf/Vld0R/2T+rH4ljFj66iCruoN2DqLK2ELjESSXXZ9dFYhcBGnuEMBmp 68+X7jxorpBE/lNaLxu5AI8H7biguXq9w3D6d8I0P0vKAENdj8ynlfTQQLUong== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714244120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GXXN3EsqW0/5RddiVjDBZ+d8djSiJpV+pUehKFyAMYU=; b=g+Oaf3yB8uvHfb9lq3U6VgMo8ts0ZIkxcSSKmZAKVbtiPUUqcgihDZvQsn7TszcXfuG19/ PdX8rvc0RSuZj9+Fi+WvlBH88PDl+QVLGCVfACl/xhN3YL2C6pOWIKJonmqtAjGn1OjWGE 2urqAw0yj39TGNSpc/IF+Cvm8xw0O8X6sECJrn2wkNbjQzubatNwbF6yEGQxBoZC3I1mSE 1vjn/0qg5/l6UWb9PNFNG2xjzQnjZWj2Spnn/FnAX1Om3KBg9IBJmtSK3W02aNysiZMDs1 VbBjzT66TZxP4uA5H4gd51mXUMI696hlPmQUHOXQ1JLTkiFD0JuPWRmaQFVxKw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VRf144Jx9zt6W; Sat, 27 Apr 2024 18:55:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43RItKeH038413; Sat, 27 Apr 2024 18:55:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43RItKx3038410; Sat, 27 Apr 2024 18:55:20 GMT (envelope-from git) Date: Sat, 27 Apr 2024 18:55:20 GMT Message-Id: <202404271855.43RItKx3038410@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Subject: git: 6e74b603fc02 - main - uuidgen(1): Add EXAMPLES to manual page List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e74b603fc021761c0a20e08f58b674f45ad5f04 Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/src/commit/?id=6e74b603fc021761c0a20e08f58b674f45ad5f04 commit 6e74b603fc021761c0a20e08f58b674f45ad5f04 Author: Fernando ApesteguĂ­a AuthorDate: 2023-09-07 15:17:38 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2024-04-27 18:53:59 +0000 uuidgen(1): Add EXAMPLES to manual page Approved by: manpages@ (gbe@) Reviewed by: gbe@, pauamma Differential Revision: https://reviews.freebsd.org/D43494 --- bin/uuidgen/uuidgen.1 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/bin/uuidgen/uuidgen.1 b/bin/uuidgen/uuidgen.1 index 51475c900bbc..1c2e7cce91d3 100644 --- a/bin/uuidgen/uuidgen.1 +++ b/bin/uuidgen/uuidgen.1 @@ -77,6 +77,30 @@ to each other, but operating system latency and processing time will be reflected in the distance between two successive identifiers. .Sh EXIT STATUS .Ex -std +.Sh EXAMPLES +Generate a batch of three UUIDs. +Notice the similarity of the string before the first hyphen of the UUID +(known as +.Em time_low +in +.Em rfc4122 +): +.Bd -literal -offset indent +$ uuidgen -n3 +8bc44345-4d90-11ee-88c7-b42e991fc52e +8bc44346-4d90-11ee-88c7-b42e991fc52e +8bc44347-4d90-11ee-88c7-b42e991fc52e +.Ed +.Pp +Generate a batch of random UUIDs without hyphens: +.Bd -literal -offset indent +$ uuidgen -r -c -n3 +5ad8b60a0f4e41f59c82d273202275f9 +6c41925486cd4bf59720a5bad85de2e4 +8144fdab63f648a1812d12453f975313 +.Ed +.Pp +Notice that the UUIDs are not similar to each other. .Sh SEE ALSO .Xr uuidgen 2 , .Xr uuid 3