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 Mon May 23 22:12:14 UTC 2022 against commit b81828ab81828a7ff621aa4b9554e6509f225a315a126fe.

Current version is 2.8.2100 BETA which has been verified against 15889 tests.