I would like to append the numbers 1, 2, 3, 4 and so on to the lines of the file:
Adam Wilkins | Colorado | 36
John Butler | Los Angeles | 47
Cassey Johnson | Minneapolis | 25
Albert Aniston | Miami | 19
....
Tony Legler | Sacramento | 55
Matt Simmons | New York | 38
Output would look like this:
Adam Wilkins | Colorado | 36 | 1
John Butler | Los Angeles | 47 | 2
Cassey Johnson | Minneapolis | 25 | 3
Albert Aniston | Miami | 19 | 4
.....
Tony Legler | Sacramento | 55 | 9
Matt Simmons | New York | 38 | 10
I know this is simple for Unix gurus
Maybe someone can enlighten me on this?
Many thanks.