r2t

command module
v0.0.0-...-43bb0b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

README

r2t

r2t converts raw to text.

usage:

$> r2t < infile > outfile

Environment variables control the output of r2t:

R2T_ENC

The encoding environment variables defines how the raw bits are converted. Implemented options:

  • b64, 64: use the base64 encoding
  • b85, 85: use the base85 encoding
  • hex, 16: use hex encoding
  • 2: use binary encoding
R2T_WRAP

The R2T_WRAP environment variables controls at which column the text is wrapped by a new line.

eg:

$> env R2T_ENC=64 R2T_WRAP=32 r2t < infile

will wrapp the base64 encoded output at column 32.

Installation

To install r2t to ~/go/bin use:

$> go install -v github.com/mgumz/r2t@latest

Building

Build local:

$> git clone https://github.com/mgumz/r2t
$> cd r2t
$> go build .

More advanced build options are available in the Makefile

License

See the LICENSE file in this repository.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL