nl โ€” Number lines from a file or from `stdin`. # source: tldr ยท verified Examples: # Number non-blank lines in a file [GNU] $ nl path/to/file # Read from `stdin` [GNU] $ command | nl # Number all body lines including blank lines or do not number body lines [GNU] $ nl [-b|--body-numbering] a|n path/to/file # โœŽ Wrong or incomplete? Improve this page โ†’ https://curlhub.sh/man/nl