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 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.