POSIX Pipe (|) Token - Parser Reference

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 May 19 22:45:48 UTC 2023 against commit 54b5f6754b5f67b250bbf7353e83c42ed187802584c3ae3.

Current version is 4.1.6140 which has been verified against 14045 tests cases.