nachricht-nq
Transform nachricht messages between the wire format and the textual representation. By default, nq
will treat input
as binary and generate textual output. This can be used to peek into a program's output with ease.
|
[
The -t
switch can be used to treat input as textual form instead. This is useful to format a message on the fly.
|
(
)
The -e
switch will produce the output in the wire format. This is useful to canonicalize inefficiently encoded
messages or within a pipe to verify the data's validity.
| | ;
The two switches can also be combined to generate the wire format from the textual representation. This is useful to quickly feed a nachricht-expecting program some data from the command line.
| | ;
Finally, you can edit any nachricht encoded file with the -f <PATH>
option. This will open the file in a temporary
buffer in your default editor to make changes within the textual representation.