murex Shell Docs

Parser Reference: Append Pipe (>>) Token

Redirects STDOUT to a file and append its contents


This is used to redirect the STDOUT of a command and append it to a file. If that file does not exist, then the file is created.

This behaves similarly to the Bash (et al) token except it doesn’t support adding alternative file descriptor numbers. Instead you will need to use named pipes to achieve the same effect in murex.


» out: "Hello" >> example.txt
» out: "World!" >> example.txt
» open: example.txt


This is just syntactic sugar for -> >>. Thus when the parser reads code like the following:

echo "foobar" >> example.txt

it will compile an abstract syntax tree which would reflect the following code instead:

echo "foobar" | >> example.txt

Truncating a file

To truncate a file (ie overwrite its contents) use |> instead.

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 Feb 13 09:18:06 UTC 2023 against commit f339958f33995895c1d997efcdbb8408d2c8d45f8b5f934.

Current version is which has been verified against 13950 tests cases.