aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2025-08-10 16:15:37 +0100
committerPádraig Brady <P@draigBrady.com>2025-08-10 16:21:42 +0100
commit192e09042fad51f417f801c376c772552517e112 (patch)
tree1f9e1151953b4266c7da058e292e4f7bd5e1991c
parentdoc: rearrange NEWS to more standard ordering (diff)
downloadcoreutils-192e09042fad51f417f801c376c772552517e112.tar.gz
coreutils-192e09042fad51f417f801c376c772552517e112.zip
doc: --base58: add example usage to info
* doc/coreutils.texi (basenc invocation): Add an example using --base58 to generate a unique ID. This also demonstrates compound usage of the basenc command, to convert to/from binary.
-rw-r--r--doc/coreutils.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 19de577e5..596cdbf4f 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -2378,6 +2378,10 @@ The format conforms to
Base58 draft}.
This encoding is useful for transcription as the output avoids
visually similar characters. It's best suited to smaller amounts of data.
+For example this generates a unique 128 bit ID in 22 bytes:
+@example
+uuidgen | basenc --base16 -di | basenc --base58
+@end example
@item --base32
@opindex --base32