xargs

    xargs command for MoonX.

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

    #xargs

    Build and run command lines from standard input through MoonX.

    #Usage

    printf 'one\ntwo\n' | moonx cli/xargs -n 1 printf '%s\n' moonx cli/xargs -0 -n 10 printf '%s\n' < names.nul

    Batch input items into child arguments, with optional replacement, delimiters, size limits and parallel execution.

    #Common options

    OptionDescription
    -0, --nullRead NUL-delimited items without quote or backslash processing.
    -d VALUE, --delimiter VALUESeparate input items with the selected byte.
    -n VALUE, --max-args VALUELimit arguments per invocation.
    -r, --no-run-if-emptyDo not invoke the command for empty input.
    -I VALUE, --replace VALUEReplace TEXT using logical input lines.
    -P VALUE, --max-procs VALUERun at most N batches concurrently. Default: 1.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Child execution requires launcher permission. Arbitrary invalid byte sequences cannot always be transported as host arguments.
    • Default tokenization interprets quoting and backslashes; use -0 for NUL-separated filenames.

    See the compatibility guide for the supported profile.

    Source Files