A universally unique identifier1 (UUID) is a 128-bit number used to identify information in computer systems. The term globally unique identifier (GUID) is also used.
When generated according to the standard methods, UUIDs are for practical purposes unique, without depending for their uniqueness on a central registration authority or coordination between the parties generating them, unlike most other numbering schemes. While the probability that a UUID will be duplicated is not zero, it is close enough to zero to be negligible.
Thus, anyone can create a UUID and use it to identify something with near certainty that the identifier does not duplicate one that has already been, or will be, created to identify something else. Information labeled with UUIDs by independent parties can therefore be later combined into a single database, or transmitted on the same channel, with a negligible probability of duplication.
The structure and textual representation of UUIDs are defined in the RFC 41222
standard. In its canonical textual representation, the sixteen octets
(
550e8400-e29b-41d4-a716-446655440000
The groups respectively contain 8, 4, 4, 4 and 12 hexadecimal digits3, for a total of 36 characters (32 alphanumeric characters and four hyphens). The hexadecimal numeral system uses sixteen distinct symbols: the digits 0–9 to represent values zero to nine, and the letters a–f to represent values ten to fifteen. RFC 4122 requires that the hexidecimal letters must be represented in lower case.
Each line of the text file uuid.txt4
consists of a pattern
Determine the shortest possible regular expressions for the following
subsets of
example: | |
example: | |
example: | |
example: | |
Each time give a Unix command where the regular expression is used by
a command from the grep family to write only those lines
from the text file to stdout whose pattern
Find the words
the word
the word
the word
the word
Each time give a Unix command where the regular expressions for the
subsets