nl command is a Unix/Linux utility that is used for numbering lines, accepting input either from a file or from STDIN. It copies each specified file to STDOUT, with line numbers appended before the lines.
What is NL in Linux?
The nl command is a command line text formatting utility in Linux. … It’s main purpose is to display line numbers of a file or standard input. Write each FILE to standard output, with line numbers added. With no FILE, or when FILE is -, read standard input.
What is PR command in Linux?
Description. The pr command writes the specified file or files to standard output. … A heading that contains the page number, date, time, and name of the file separates the output into pages. Unless specified, columns are of equal width and separated by at least one space.