commands.sh

basenc

all

Encode or decode file or `stdin` using a specified encoding, to `stdout`.

More info →

Options (2)

-d, --decodeboolean

Decode a file with base64 encoding

Example: basenc {{[-d|--decode]}} --base64 {{path/to/file}}
-w, --wrapboolean

Encode from `stdin` with base32 encoding with 42 columns

Example: {{command}} | basenc --base32 {{[-w|--wrap]}} 42

Examples (4)

Encode a file with base64 encoding

basenc --base64 path/to/file

Decode a file with base64 encoding

basenc [-d|--decode] --base64 path/to/file

Encode from `stdin` with base32 encoding with 42 columns

command | basenc --base32 [-w|--wrap] 42

Encode from `stdin` with base32 encoding

command | basenc --base32
made by @shridhargupta | data from tldr-pages