Truncate File (>)
Less than 1 minuteOperators And TokensFilesystem OperationsPipes
>
)
Truncate File (Writes stdin to disk - overwriting contents if file already exists
Description
Redirects output to file.
If a file already exists, the contents will be truncated (overwritten). Otherwise a new file is created.
Usage
<stdin> |> filename
Examples
g * |> files.txt
Synonyms
>
|>
fwrite
See Also
- Create Named Pipe (
pipe
): Manage Murex named pipes - Create Temporary File (
tmp
): Create a temporary file and write to it - Globbing (
g
): Glob pattern matching for file system objects (eg*.txt
) - Read / Write To A Named Pipe (
<pipe>
): Reads from a Murex named pipe ->
Arrow Pipe: Pipes stdout from the left hand command to stdin of the right hand command>>
Append File: Writes stdin to disk - appending contents if file already exists?
stderr Pipe: Pipes stderr from the left hand command to stdin of the right hand command (DEPRECATED)|
POSIX Pipe: Pipes stdout from the left hand command to stdin of the right hand command
This document was generated from builtins/core/io/file_doc.yaml.