tee

    tee command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.6
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    155

    #tee

    Copy standard input to files and standard output through MoonX.

    #Usage

    printf 'hello\n' | moonx cli/tee -p output.txt moonx cli/tee -p -a output.txt < extra.txt

    Write each input byte to stdout and every file operand. Files are truncated unless -a selects append mode.

    #Common options

    OptionDescription
    -a, --appendAppend instead of truncating files.
    --output-error VALUEModes: warn, warn-nopipe, exit, exit-nopipe; bare flag selects warn-nopipe.
    --helpShow help.
    --versionShow the version.
    -pModes: warn, warn-nopipe, exit, exit-nopipe; bare flag selects warn-nopipe.

    #Notes

    • Use -p or --output-error with warn, warn-nopipe, exit or exit-nopipe. Default broken-pipe handling reports an unsupported capability with status 2 instead of raising SIGPIPE.

    See the compatibility guide for the supported profile.

    Source Files