]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: --base58: add example usage to info
authorPádraig Brady <P@draigBrady.com>
Sun, 10 Aug 2025 15:15:37 +0000 (16:15 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 10 Aug 2025 15:21:42 +0000 (16:21 +0100)
* 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.

doc/coreutils.texi

index 19de577e5120eed9c7ea428d8cc20695619c6377..596cdbf4feec07b0cfd5bd7e90fd5ed78be3f425 100644 (file)
@@ -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