View text file with line number

The cat command show the content of the text file and with the -n switch it provide content with line number.

user@hostname$ cat -n foo.txt 1 Hello World 2 I am here 3 for the printf() output 4 echo also do the same 5

Design by SanjuD (@ngineerbabu)