tac

    tac command for MoonX.

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

    #tac

    Reverse record order for MoonX.

    moonx cli/tac@0.1.5 [OPTION]... [FILE]...

    #Supported scope

    Reverse records from each file or stdin, preserving separator bytes and missing final separators. Default separator is LF.

    #Options

    OptionDescription
    -s, --separator=STRINGSet a separator; empty fixed separator means NUL.
    -b, --beforeAttach separators to the following record.
    -r, --regexInterpret the separator using GNU Emacs byte regex syntax.
    --help / --versionShow help / package version.

    #Limitations

    • Empty regex separators and locale-aware matching are unsupported.
    • Stdin/nonregular inputs and regex mode require temporary storage. Regex mode also retains input in memory.

    #Examples

    printf 'one\ntwo\n' | moonx cli/tac@0.1.5 moonx cli/tac@0.1.5 -s '--' records.txt