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 Sun Aug 7 21:54:24 UTC 2022 against commit dcfad0ddcfad0d89bac50d6bf3febdd0f4fad5580a9564c.

Current version is 2.10.2400 which has been verified against 16766 tests cases.