Sign in

    nl

    nl command for MoonX.

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

    Dependencies

    #nl for moonx

    Version 0.2.1 behavior is documented here. The support record separates local verification from published MoonX behavior; moonx examples use registry releases.

    Number lines of files or stdin:

    printf 'alpha\nbeta\n' | moonx cli/nl moonx cli/nl -b a -w 3 -s ' ' notes.txt

    Options: -b a|t|n number all/nonempty/no body lines (default t), -h and -f select header/footer styles, -w N sets number width (default 6), and -s SEP sets the separator (default TAB). -v N sets the initial number, -i N its increment, -d CC selects the two-byte section delimiter, and -p prevents page resets. -n ln|rn|rz selects left, right, or zero-padded number fields; -l N numbers only the last line in each complete group of N blank lines when style a is active. Section markers are replaced by blank lines. The locale-sensitive pBRE numbering style remains outside this fixed C-locale profile and is rejected.

    With no file operand, the command silently reads stdin until EOF, matching the upstream terminal, pipe, redirection, and explicit - behavior.

    #Standalone metadata

    Standalone --version prints exactly nl 0.2.1 followed by one newline. Standalone --help starts with Usage: nl, lists both metadata options, and ends with a newline. Both write to stdout, leave stdin unread, and exit with status 0. Exact-version publication and verification remain recorded separately in the support record.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io