I have the following file pattern:
insert_buffer cell_a
insert_buffer cell_b
insert_buffer cell_b
...
I want to add one more column to the end of each line with incremented number. e.x. 0,1,2,3...:
insert_buffer cell_a name_0
insert_buffer cell_b name_1
insert_buffer cell_b name_2
...
How do I for loop using awk? Or any other solution is fine.