SyntaxFix
Write A Post
Hire A Developer
Questions
Use nl like this:
nl
nl filename
From man nl:
man nl
Write each FILE to standard output, with line numbers added. With no FILE, or when FILE is -, read standard input.