>>
) TokenRedirects 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 |>
instead.
->
) 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 existsja
(mkarray): A sophisticated yet simply way to build a JSON arrayThis 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.