Hi ,
I have a file with ',' as delmiter and structure as
x,345,rty,456,yyy
x,345,rty,456,yyy
x,345,rty,456,yyy
x,345,rty,456,yyy
x,345,rty,456,yyy
x,345,rty,456,yyy
I need to append a sequence number as the first character of the line by line number , so that the output should look like ,
1,x,345,rty,456,yyy
2,x,345,rty,456,yyy
3,x,345,rty,456,yyy
4,x,345,rty,456,yyy
5,x,345,rty,456,yyy
Any ideas, Is it possible through sed command ?
Regds
Sachin Rath
I have a file with ',' as delmiter and structure as
x,345,rty,456,yyy
x,345,rty,456,yyy
x,345,rty,456,yyy
x,345,rty,456,yyy
x,345,rty,456,yyy
x,345,rty,456,yyy
I need to append a sequence number as the first character of the line by line number , so that the output should look like ,
1,x,345,rty,456,yyy
2,x,345,rty,456,yyy
3,x,345,rty,456,yyy
4,x,345,rty,456,yyy
5,x,345,rty,456,yyy
Any ideas, Is it possible through sed command ?
Regds
Sachin Rath