I read about sed last week, and now, I am doing some extraction from the file using sed, that’s fine. Now I would like to change the data in the first column to the row number, say
1 3 3 0 0 0 1 3 35 34
16 3 3 0 0 0 34 35 33 19
31 3 3 0 0 0 19 33 71 68
46 3 3 0 0 0 68 71 72 69
61 3 3 0 0 0 69 72 73 70
76 3 3 0 0 0 70 73 67 53
and change the first column to 1-6, how can I do this in awk or sed? Best, Umut
source
share