Hi all,
I have table like this
A1
1 2
1 3
2 4
A2
3 1
1 2
1 1
A3
1 1
2 0
3 2
.....
An
And i want to add column to my table and the table will become like this :
A1
1 2 A1
1 3 A1
2 4 A1
A2
3 1 A2
1 2 A2
1 1 A2
A3
1 1 A3
2 0 A3
3 2 A3
.....
An
Can someone kindly suggest what should i do with AWK to achieve this..