mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
562 B
Plaintext
30 lines
562 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# base32
|
|
|
|
> Encode or decode file or `stdin` to/from Base32, to `stdout`.
|
|
> More information: <https://manned.org/base32>.
|
|
|
|
- Encode a file:
|
|
|
|
`base32 {{path/to/file}}`
|
|
|
|
- Wrap encoded output at a specific width (`0` disables wrapping):
|
|
|
|
`base32 {{[-w|--wrap]}} {{0|76|...}} {{path/to/file}}`
|
|
|
|
- Decode a file:
|
|
|
|
`base32 {{[-d|--decode]}} {{path/to/file}}`
|
|
|
|
- Encode from `stdin`:
|
|
|
|
`{{command}} | base32`
|
|
|
|
- Decode from `stdin`:
|
|
|
|
`{{command}} | base32 {{[-d|--decode]}}`
|