Display line numbers using the cat command
A simple feature you one day may be glad you know.
By adding the -n
option you can make the cat command display line numbers in the output. Here is an example.
$ cat -n helloworld.c
1 #include <stdio.h>
2
3 int main(void)
4 {
5 printf("Hello, World\n");
6
7 return 0;
8 }