nl command

I know how to display line numbers using vim text editor. How do display line numbers in the left side for any text file under Unix or Linux operating systems?

{ 1 comment }

How do I use the cat command to display the line numbers for a file called myapp.c under Linux or Unix like operating systems?

{ 1 comment }

How do I number each line to a text file? How do I write a shell script to display text file with line numbers added?

{ 12 comments }