Nl

Print line number

$ cat filename | nl

$ ls | nl