sed

    sed command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.1
    License
    Apache-2.0
    Last updated
    9 days ago
    Downloads
    103

    #sed

    Edit text streams for MoonX.

    moonx cli/sed@0.2.1 [-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.1 's/old/new/g' file.txt moonx cli/sed@0.2.1 -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