split

    split command for MoonX.

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

    #split

    Split input into separate files through MoonX.

    #Usage

    moonx cli/split -l 100 input.txt part- moonx cli/split -b 1M input.bin chunk-

    Split by lines, bytes, record-aware byte limits or chunk selection. Default output is 1,000 lines per file with alphabetic suffixes.

    #Common options

    OptionDescription
    -l VALUE, --lines VALUEPut this many records in each piece. Default: 1000.
    -b VALUE, --bytes VALUEput SIZE bytes in each piece
    -C VALUE, --line-bytes VALUEput at most SIZE bytes of records in each piece
    -n VALUE, --number VALUEN, K/N, l/N, l/K/N, r/N or r/K/N
    -a VALUE, --suffix-length VALUEfixed suffix width; zero selects automatic width
    --additional-suffix VALUEappend SUFFIX to generated names
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Existing output files are refused. Size-dependent stdin modes may spool input to temporary storage.
    • --filter runs the supported pure MoonBit shell profile; external children still require launcher permission.

    See the compatibility guide for the supported profile.

    Source Files