>>
Append FileWrites stdin to disk - appending contents if file already exists
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
Hello
World!
This is just syntactic sugar for -> >>
. Thus
when the parser reads code like the following:
out "foobar" >> example.txt
it will compile an abstract syntax tree which would reflect the following code instead:
out "foobar" | >> example.txt
To truncate a file (ie overwrite its contents) use |>
instead.
>>
fappend
pipe
): Manage Murex named pipesout
):
Print a string to the stdout with a trailing new line character<pipe>
): Reads from a Murex named pipe>
): Writes stdin to disk - overwriting contents if
file already exists->
Arrow Pipe:
Pipes stdout from the left hand command to stdin of the right hand
command|
POSIX Pipe:
Pipes stdout from the left hand command to stdin of the right hand
commandThis document was generated from builtins/core/io/write_doc.yaml.
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 Wed Jul 2 22:12:32 UTC 2025 against commit bb72b6fbb72b6fdd502f835172d7d06207ba4ec2c70886c.
Current version is 7.0.2107 (develop) which has been verified against tests cases.