->
Arrow PipePipes stdout from the left hand command to stdin of the right hand command
This token behaves much like pipe would in Bash or similar shells. It passes stdout along the pipeline while merging stderr stream with the parents stderr stream.
->
differs from |
in the interactive
terminal where it produces different autocompletion suggestion. It
returns a list of “methods”. That is, commands that are known to support
the output type of the previous command. ->
helps with
the discovery of command line tools.
In shell scripts, ->
and |
can be used
interchangeably.
» out Hello, world! -> regexp s/world/Earth/
Hello, Earth!
» out Hello, world!->regexp s/world/Earth/
Hello, Earth!
In following example the first command is writing to stderr rather
than stdout so Hello, world!
doesn’t get pipelined and thus
isn’t affected by regexp
:
» err Hello, world! -> regexp s/world/Earth/
Hello, world!
To pipe stderr you’d need to use the <!>
syntax.
For example <!out>
to write stderr to stdout:
» err <!out> Hello, world! -> regexp s/world/Earth/
Hello, Earth!
err
):
Print a line to the stderrout
):
Print a string to the stdout with a trailing new line character<pipe>
): Reads from a Murex named piperegexp
): Regexp tools for arrays / lists of
strings=>
Generic
Pipe: Pipes a reformatted stdout stream from the left hand command
to stdin of the right hand command?
stderr Pipe:
Pipes stderr from the left hand command to stdin of the right hand
command (DEPRECATED)|
POSIX Pipe:
Pipes stdout from the left hand command to stdin of the right hand
commandThis document was generated from gen/parser/pipes_doc.yaml.
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 Wed Jan 15 23:07:50 UTC 2025 against commit b4c4296b4c429617fd41527ea0efef33c52c15ef2b64972.
Current version is 6.4.2063 (develop) which has been verified against tests cases.