aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2023-09-07 15:17:38 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2024-04-27 18:53:59 +0000
commit6e74b603fc021761c0a20e08f58b674f45ad5f04 (patch)
treeea1330e7d5c7c5828b6880fd5feb3630506dcd9c
parent9718d4ab99386918f5b5c207c58289eaade20623 (diff)
downloadsrc-6e74b603fc021761c0a20e08f58b674f45ad5f04.tar.gz
src-6e74b603fc021761c0a20e08f58b674f45ad5f04.zip
uuidgen(1): Add EXAMPLES to manual page
Approved by: manpages@ (gbe@) Reviewed by: gbe@, pauamma Differential Revision: https://reviews.freebsd.org/D43494
-rw-r--r--bin/uuidgen/uuidgen.124
1 files changed, 24 insertions, 0 deletions
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