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 Hello World!
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
To truncate a file (ie overwrite its contents) use
->) Token: Pipes STDOUT from the left hand command to STDIN of the right hand command
|) Token: Pipes STDOUT from the left hand command to STDIN of the right hand command
?) Token: Pipes STDERR from the left hand command to STDIN of the right hand command
read-named-pipe: Reads from a murex named pipe
>>(append file): Writes STDIN to disk - appending contents if file already exists
>(truncate file): Writes STDIN to disk - overwriting contents if file already exists
ja(mkarray): A sophisticated yet simply way to build a JSON array
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.