nl

    nl command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.5
    License
    Apache-2.0
    Last updated
    4 days ago
    Downloads
    120

    #nl

    Number input lines for MoonX.

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

    #Supported scope

    This version pads unnumbered lines with spaces across the number field and separator width. Exact ordinary blank-line and custom-separator cases complement complete-source comparisons.

    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.5 notes.txt moonx cli/nl@0.2.5 -b a -w 3 -s ' ' notes.txt