I am really struggling to add a new column with the line number in the terminal to a pipe delimited file
My current file looks like this:
ID|FirstName|LastName
12|John|Svernson
23|Mark|Wright
11|Chris|Watson
And I want the file to look like the following:
LN|ID|FirstName|LastName
1|12|John|Svernson
2|23|Mark|Wright
3|11|Chris|Watson
I have over 90k lines. I couldn't find a way to do this. Any help or guidance would be appreciated. Thanks