Manual Reference Pages  - unique (1m_uuid)

NAME

unique(1f) - [FUNIX] generate a UUID (Universally Unique ID) string per RFC 4122 (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Examples
Author
License

SYNOPSIS

unique [[ --method] NAME][ -urn][ -repeat N]]|[ --help|--version]

DESCRIPTION

unique(3f) generates UUID strings according to the RFC 4122 standard.

A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. When generated according to standard methods UUIDs are for practical purposes unique.

Standard methods 0,1, and 4 are supported as described in RFC 4122.

UUID strings are particularly useful as keys for relational database entries, and for building unique temporary file names (especially in cross-mounted filesystems that more than one OS is utilizing).

OPTIONS

--method NAME
  Select the UUID version type. Supported methods are nil|0, random|4, time|1.
0. Nil UUID (ie. ’’00000000-0000-0000-0000-000000000000’’)
1. time-based UUID
2. Not implemented
3. Not implemented
4. pseudo-RNG(Random Number Generator) based. The default
5. Not implemented
--urn The output is prefixed with "urn:uuid:". This conforms to RFC 4122, which defines a Uniform Resource Name (URN) namespace for UUIDs.
--repeat N
  Number of UUID strings to generate
--help display this help and exit
--version
  output version information and exit

EXAMPLES

Sample commands

   unique
   4bb8051e-4af3-11e8-6603-4254ffee9a14

unique --urn urn:uuid:e9fd7cab-69f2-4cd6-4b5e-d54b9fbf617a

unique --method time --repeat 4 f2a2faf0-833a-11e9-7373-5eb4cfd7e237 f2a2faf0-833a-11e9-7373-afbb9f7b9100 f2a2faf0-833a-11e9-7373-cde3ffff3681 f2a2faf0-833a-11e9-7373-271cfbfd42bc

unique --usage # show usage, including short names USAGE: Keyword Short Present Value help h F [F] method m F ["4"] repeat r F [1] urn U F [F] usage u T [T] verbose V F [F] version v F [F]

unique -r 2 -m 1 -U urn:uuid:91c6a054-26df-11ee-5779-c946fe995111 urn:uuid:91c6a054-26df-11ee-5779-62307afd65fd

AUTHOR

John S. Urban

LICENSE

Public Domain


Nemo Release 3.1 unique (1m_uuid) August 29, 2024
Generated by manServer 1.08 from cfa31cce-c159-4c2e-8564-fcf36b5d3dd7 using man macros.