murex Shell Docs

Parser Reference: POSIX Pipe (|) Token

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

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

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

In this 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!

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 Fri Oct 22 16:26:06 UTC 2021 against commit 19d2aeb19d2aeb27e814a4c6fec77d229cc32d68404c061.

Current version is 2.3.4000 BETA which has been verified against tests.