Question: what does nl do linux?
Answer: nl is a linux command to number lines of the files, it copies its files to standard output, prepending line numbers. ... nl can be used in two ways: on ordinary test files, and on specially marked up text files with predefined headrs and footers.