Hi, I am a newb as far as shell scripting and SED goes so bear with me on this one.
I want to basically append to each line in a file a delimiter character and the line's line number e.g
Change the file from :-
aaaaaa
bbbbbb
cccccc
to:-
aaaaaa;1
bbbbbb;2
cccccc;3
I have worked out how to append the ";" to the end of each line ( sed '1,$s/$/;/') but am stumped with the line number bit .
This is on a Sun Solaris box btw.
Any help appreciated.
Thanks
Paul