github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/core/io/file_doc.yaml (about)

     1  - DocumentID: greater-than
     2    Title: >+
     3      `|>` Truncate File
     4    CategoryID: parser
     5    Summary: >-
     6      Writes STDIN to disk - overwriting contents if file already exists
     7    Description: |-
     8      Redirects output to file.
     9  
    10      If a file already exists, the contents will be truncated (overwritten).
    11      Otherwise a new file is created.
    12    Usage: |-
    13      ```
    14      <stdin> |> filename
    15      ```
    16    Examples: |-
    17      ```
    18      g * |> files.txt
    19      ```
    20    Detail:
    21    Synonyms:
    22      - "|>"
    23      - ">"
    24      - "fwrite"
    25    Related:
    26      - greater-than-greater-than
    27      - pipe
    28      - g
    29      - tmp
    30      - pipe-arrow
    31      - pipe-posix
    32      - namedpipe
    33      - pipe-err
    34  
    35  - DocumentID: greater-than-greater-than
    36    Title: >+
    37      `>>` Append File
    38    CategoryID: parser
    39    Summary: >-
    40      Writes STDIN to disk - appending contents if file already exists
    41    Description: |-
    42      Redirects output to file.
    43  
    44      If a file already exists, the contents will be appended to existing contents.
    45      Otherwise a new file is created.
    46    Usage: |-
    47      ```
    48      <stdin> >> filename
    49      ```
    50    Examples: |-
    51      ```
    52      g * >> files.txt
    53      ```
    54    Detail:
    55    Synonyms:
    56      - ">>"
    57      - "fappend"
    58    Related:
    59      - greater-than
    60      - pipe
    61      - g
    62      - tmp
    63      - pipe-arrow
    64      - pipe-posix
    65      - namedpipe
    66      - pipe-err
    67  
    68  - DocumentID: pt
    69    Title: >+
    70      `pt`
    71    CategoryID: commands
    72    Summary: >-
    73      Pipe telemetry. Writes data-types and bytes written
    74    Description: |-
    75      Pipe telemetry, `pt`, writes statistics about the pipeline. The telemetry is written
    76      directly to the OS's STDERR so to preserved the pipeline.
    77    Usage: |-
    78      ```
    79      <stdin> -> pt -> <stdout>
    80      ```
    81    Examples: |-
    82      ```
    83      curl -s https://example.com/bigfile.bin -> pt -> > bigfile.bin
    84      ```
    85  
    86      (though Murex does also have it's own HTTP clients, `get`, `post` and
    87      `getfile`)
    88    Detail:
    89    Synonyms:
    90    Related:
    91      - greater-than
    92      - greater-than-greater-than
    93      - get
    94      - post
    95      - getfile