nl

    nl command for MoonX.

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

    #nl

    Number input lines for MoonX.

    moonx cli/nl@0.2.4 [-b STYLE] [-h STYLE] [-f STYLE] [-v NUMBER] [-i NUMBER] [-l NUMBER] [-n FORMAT] [-w NUMBER] [-s STRING] [-d STRING] [-p] [FILE...]

    #Supported scope

    Read files or stdin and number body, header and footer sections. Default body style numbers nonempty lines, with width 6 and TAB separation.

    #Options

    OptionDescription
    -b / -h / -f STYLESet body / header / footer style: a (all), t (nonempty), n (none).
    -w N / -s SEPSet number width / separator.
    -v N / -i NSet starting number / increment.
    -d STRINGSet section delimiter; default :; empty disables markers.
    -pDo not restart numbers at logical pages.
    -n ln\|rn\|rzLeft-align / right-align / zero-pad numbers.
    -l NNumber the last line of each N blank lines in style a.
    --help / --versionShow help / package version.

    #Limitations

    • The pBRE numbering style is unsupported.

    #Examples

    moonx cli/nl@0.2.4 notes.txt moonx cli/nl@0.2.4 -b a -w 3 -s ' ' notes.txt

    Source Files

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io