| POSIX Pipe

Pipes stdout from the left hand command to stdin of the right hand command

Description

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.

It can be used interchangeably with the arrow pipe, ->, in shell scripts.

Examples

Piping stdout

» out Hello, world! | regexp s/world/Earth/
Hello, Earth!

» out Hello, world!|regexp s/world/Earth/
Hello, Earth!

Piping stderr

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!

See Also


This 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 Jul 2 22:12:32 UTC 2025 against commit bb72b6fbb72b6fdd502f835172d7d06207ba4ec2c70886c.

Current version is 7.0.2107 (develop) which has been verified against tests cases.