Hi All,
Can anyone help I am pain stakingly trying to go through a file and in vi trying to join to line together. But the file is rather large there must be an easier way to do this.
e.g file :-
2226697 29/01/08
2226697 "630511" "0P0705011" 1.00
2226698 29/01/08
2226698 "630571" "0P0705071" 1.00
2226744 29/01/08
2226744 "396001" "0C2660001" 1.00
2226756 29/01/08
2226756 "630101" "0P0701001" 1.00
2226789 29/01/08
2226789 "620113" "0P0601013" 1.00
2226799 29/01/08
2226799 "815005" "0E0115005" 1.00
2226799 "140009" "0B0840009" 1.00
2226799 "721001" "0G0121001" 1.00
2226799 "730001" "0G0230001" 1.00
2226799 "855010" "0E0750010" 1.00
2226799 "815005" "0E0115005" 1.00
2226799 "140009" "0B0840009" 1.00
2226799 "721001" "0G0121001" 1.00
2226799 "730001" "0G0230001" 1.00
I need to put everything on one line where $1 matches like this.
e.g.2226697 29/01/08 2226697 "630511" "0P0705011" 1.00
any help would be grate. Thanks in advance
Can anyone help I am pain stakingly trying to go through a file and in vi trying to join to line together. But the file is rather large there must be an easier way to do this.
e.g file :-
2226697 29/01/08
2226697 "630511" "0P0705011" 1.00
2226698 29/01/08
2226698 "630571" "0P0705071" 1.00
2226744 29/01/08
2226744 "396001" "0C2660001" 1.00
2226756 29/01/08
2226756 "630101" "0P0701001" 1.00
2226789 29/01/08
2226789 "620113" "0P0601013" 1.00
2226799 29/01/08
2226799 "815005" "0E0115005" 1.00
2226799 "140009" "0B0840009" 1.00
2226799 "721001" "0G0121001" 1.00
2226799 "730001" "0G0230001" 1.00
2226799 "855010" "0E0750010" 1.00
2226799 "815005" "0E0115005" 1.00
2226799 "140009" "0B0840009" 1.00
2226799 "721001" "0G0121001" 1.00
2226799 "730001" "0G0230001" 1.00
I need to put everything on one line where $1 matches like this.
e.g.2226697 29/01/08 2226697 "630511" "0P0705011" 1.00
any help would be grate. Thanks in advance