F gge0006y
D 12-30-2006
T 14:05:55
S a69
B 15.3
M gge06001
P 30.6
Q 21.1
R 1006.6
U 1014.6
X 36.1
A 38.994 0 0
G 107.71 0 0
H 8.433
O 36.705
C 7.621
K 27.623
W 210.51
I need to cut the both 0 0 from A and G but I cant seem to do it without cutting all zeros from the text which is not what I want, just those four zeros, how would I do this?
sed 's/ 0//g' input
orsed 's/0 0//g' input
<=SE removed the extra spaces in there. – jesse_b Feb 11 '18 at 18:30C 07.621
it would cut it toC 7.621
– jesse_b Feb 11 '18 at 18:39cut -d ' ' -f1,2 file
orawk '{print $1, $2}' file
– steeldriver Feb 11 '18 at 19:43