sed

    sed command for MoonX.

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

    #sed

    Edit text streams for MoonX.

    moonx cli/sed@0.2.2 [-nE] [-e SCRIPT] [-f SCRIPTFILE] [SCRIPT] [FILE...]

    #Supported scope

    Read files or stdin with BRE/ERE substitutions, line/pattern addresses, ranges, hold space, groups, branches and text insertion. Files share numbering and state.

    #Options

    OptionDescription
    -n, --quiet, --silentSuppress automatic output.
    -e, --expression=SCRIPTAppend a script; may repeat.
    -f, --file=FILERead a script file; may repeat.
    -E, -rUse extended regular expressions.
    --help / --versionShow help / package version.

    #Limitations

    • In-place editing and locale-aware matching are unsupported.
    • Supported commands: p d q = s h H g G x : b t T n N P D a i c and addressed groups; unsupported syntax fails before input.

    #Examples

    moonx cli/sed@0.2.2 's/old/new/g' file.txt moonx cli/sed@0.2.2 -n '2,5p' file.txt

    Action

    type Action

    Address

    type Address

    Command

    type Command

    Input

    type Input

    PatternRef

    type PatternRef

    Runtime

    type Runtime

    Script

    type Script

    Space

    type Space

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io