nl

    nl command for MoonX.

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

    #nl

    Number lines with page and section rules through MoonX.

    #Usage

    moonx cli/nl input.txt moonx cli/nl -ba -w 4 -s ': ' input.txt

    Number nonempty body lines by default. Header, body and footer styles can select all, nonempty, matching or no lines.

    #Common options

    OptionDescription
    -b VALUE, --body-numbering VALUESelect body style: a (all), t (nonempty), n (none) or pBRE (matching). Default: t.
    -w VALUE, --number-width VALUESet the minimum number field width. Default: 6.
    -s VALUE, --number-separator VALUESet the text between the number and line. Default: "\t".
    -v VALUE, --starting-line-number VALUESet the initial line number. Default: 1.
    -i VALUE, --line-increment VALUESet the line-number increment. Default: 1.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Section delimiters and matching use the command's byte-oriented text profile.

    See the compatibility guide for the supported profile.

    Source Files