murex Shell Docs

Parser Reference: Generic Pipe (=>) Token

Pipes a reformatted STDOUT stream from the left hand command to STDIN of the right hand command

Description

This token behaves much like the | pipe would except it injects format generic into the pipeline. The purpose of a formatted pipe is to support piping out to external commands which don’t support murex data types. For example they might expect arrays as lists rather than JSON objects).

Examples

» ja: [Mon..Wed] => cat
Mon
Tue
Wed

The above is literally the same as typing:

» ja: [Mon..Wed] -> format generic -> cat
Mon
Tue
Wed

To demonstrate how the previous pipeline might look without a formatted pipe:

» ja: [Mon..Wed] -> cat
["Mon","Tue","Wed"]

» ja: [Mon..Wed] | cat
["Mon","Tue","Wed"]

» ja: [Mon..Wed]
[
    "Mon",
    "Tue",
    "Wed"
]

See Also

This site's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Tue Sep 20 07:48:14 UTC 2022 against commit 1769d5b1769d5bb0ba4eaf204a5e0f52053b8f877bb7466.

Current version is 2.11.2030 which has been verified against 16798 tests cases.