$ nl file.txt
$ nl -ba src.c
$ nl -w4 -s': ' notes.txt
| -b | which lines to number: a=all, t=non-empty (default), n=none |
| -w | use this column width for the line numbers |
| -s | put this string between the number and the text |
| -v | start numbering at this value |
| -i | increment the line number by this step |
| -n | number format: ln, rn (default), or rz (zero-padded) |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.