csplit

    csplit command for MoonX.

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

    #csplit

    Split text at line numbers or regular-expression matches through MoonX.

    #Usage

    moonx cli/csplit -f part- input.txt 3 moonx cli/csplit -s -f section- input.txt '/^SECTION/' '{*}'

    Create numbered fragments and print byte counts by default. Repeat patterns, custom suffixes and suppression of boundary records are supported.

    #Common options

    OptionDescription
    -f VALUE, --prefix VALUESet the output filename prefix. Default: xx.
    -n VALUE, --digits VALUESet the minimum suffix width. Default: 2.
    --suppress-matchedOmit the offset-adjusted split boundary line.
    -s, --silentSuppress output byte counts.
    -k, --keep-filesKeep created fragments after a split error.
    -z, --elide-empty-filesOmit empty output fragments.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Existing output files are refused; input may be spooled. Windows output names ending in a dot or space are rejected.
    • On errors, created fragments are removed unless -k requests keeping them.

    See the compatibility guide for the supported profile.

    Source Files