Sign in

    nl

    nl command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.2
    License
    Apache-2.0
    Last updated
    16 hours ago
    Downloads
    65

    #nl for moonx

    Version 0.2.2 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 STRING selects the section delimiter (default \:), 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 -d, a single-byte value retains : as the second delimiter byte; an empty value disables section markers. Other values are used as supplied. Header, body and footer markers repeat the delimiter three, two and one times.

    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.2 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