Hi,
Please i am trying to perform the following using awk, and i havent got a clue on where to start, can someone help or direct me to a useful resource.
My file is shown below
0.00 75.72 0
135.76 206.40 0
819.12 1077.72 0
1744.60 2003.72 0
2609.12 2868.72 0
3374.44 3715.60 0
want to manipulate it to the below
0.00 206.40 0
819.12 1077.72 0
1744.60 2003.72 0
2609.12 2868.72 0
3374.44 5000.00 0
As you can see line 2 has been removed, but the second record of line 2 has been taken to the 2nd record of line one. On line 5, the 2nd record would be a fixed number i.e. 5000.00.
Thanks for your assistance on this matter.
Please i am trying to perform the following using awk, and i havent got a clue on where to start, can someone help or direct me to a useful resource.
My file is shown below
0.00 75.72 0
135.76 206.40 0
819.12 1077.72 0
1744.60 2003.72 0
2609.12 2868.72 0
3374.44 3715.60 0
want to manipulate it to the below
0.00 206.40 0
819.12 1077.72 0
1744.60 2003.72 0
2609.12 2868.72 0
3374.44 5000.00 0
As you can see line 2 has been removed, but the second record of line 2 has been taken to the 2nd record of line one. On line 5, the 2nd record would be a fixed number i.e. 5000.00.
Thanks for your assistance on this matter.