split

    split command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.5
    License
    Apache-2.0
    Last updated
    10 hours ago
    Downloads
    82

    #split

    Split input into pieces for MoonX.

    moonx cli/split@0.1.5 [OPTION]... [FILE [PREFIX]]

    #Supported scope

    Split files or stdin by records, bytes, bounded line bytes or N-way partitions. Default is 1000 records per piece with names xaa, xab, etc.

    #Options

    OptionDescription
    -l, --lines=NUMBERput NUMBER records in each piece (default 1000)
    -b, --bytes=SIZEput SIZE bytes in each piece
    -C, --line-bytes=SIZEput at most SIZE bytes of records in each piece
    -n, --number=CHUNKSN, K/N, l/N, l/K/N, r/N or r/K/N
    -a, --suffix-length=Nfixed suffix width; zero selects automatic width
    -d, --numeric-suffixes[=FROM]numeric suffixes
    -x, --hex-suffixes[=FROM]hexadecimal suffixes
    --additional-suffix=SUFFIXappend SUFFIX to generated names
    -e, --elide-empty-filesomit empty outputs
    --filter=COMMANDrun pure shell source per piece with FILE set
    --help / --versionShow help / package version.

    #Limitations

    • Existing named outputs are refused; failures retain completed pieces.
    • --filter uses the supported sh subset and cannot combine with selected K/N stdout output. Round-robin filters can run concurrently.
    • Some modes require writable temporary storage.

    #Examples

    moonx cli/split@0.1.5 -l 100 input.txt part- moonx cli/split@0.1.5 -b 64K -d input.bin chunk-

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io