sed

    sed command for MoonX.

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

    #sed

    Transform a text stream with editing commands through MoonX.

    #Usage

    moonx cli/sed 's/old/new/g' input.txt moonx cli/sed -n '2,4p' input.txt moonx cli/sed -E 's/([0-9]+)/[\1]/g' input.txt

    Read a script operand, -e expressions or -f files. Print pattern space by default; -n enables explicit-print mode.

    #Common options

    OptionDescription
    -n, --quietSuppress automatic output.
    --silentSuppress automatic output.
    -E, --regexp-extendedUse extended regular expressions.
    -r, --extendedUse extended regular expressions.
    -e VALUE, --expression VALUEAppend a script; may repeat.
    -f VALUE, --file VALUERead a script file; may repeat.
    --helpShow help.
    --versionShow the version.

    #Notes

    • Supports the documented BRE/ERE, hold-space, branch and multiline profile. In-place -i editing and the complete GNU script grammar are unsupported.
    • Memory can grow with script-controlled pattern and hold spaces.

    See the compatibility guide for the supported profile.

    Source Files