1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-12 02:12:06 +02:00

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.
This commit is contained in:
Pádraig Brady
2025-08-10 16:15:37 +01:00
parent d7774907db
commit 192e09042f

View 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