nl prepends line numbers in the classic cat -n style, and -ba numbers every line, including empty ones, instead of skipping them. The default skips blank lines unless -ba is given. Tune the format with -w for width and -s for the separator.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.