cut

    cut command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.4
    License
    Apache-2.0
    Last updated
    16 days ago
    Downloads
    12

    Dependencies

    #cut for moonx

    Support note (2026-09-05): this README is supplementary. The support record is the only capability authority; it separates native compatibility evidence from Wasm policy and smoke evidence. Options mentioned here but not promoted in that record are not compatibility guarantees.

    Select fields or character positions from each line:

    printf 'x,y,z\n' | moonx cli/cut -d, -f1,3 moonx cli/cut -c 1-4 fixed.txt

    Options: -f LIST field list, -b LIST byte list, -c LIST character list (the latter two are identical under the fixed C-locale byte profile), -d CHAR field delimiter (default TAB), -s skip lines without the delimiter, and -z for NUL-delimited records. Lists accept N, N-M, N-, and -M, separated by commas; output preserves input order.

    An empty -d value is rejected because the delimiter must be one byte. Delimiter and -s options are rejected outside field mode.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io