I have the following text:
Variables = X, Y, Z
Zone T="Run 0020 Probe Points", I=19, J=1, F=POINT
DT=(double double double)
AUXDATA Zone_1_X = 28.180958
I want to add double quotes (") around the 28.180958 to get:
Variables = X, Y, Z
Zone T="Run 0020 Probe Points", I=19, J=1, F=POINT
DT=(double double double)
AUXDATA Zone_1_X = "28.180958"
I can successfully use the sed -i 4s/=\ /=\ \"/ ... to insert the double quote ahead of the number, but appending the double quote is elusive. I've tried various methods with sed to append the double quote on the AUXDATA line, but the double quote appears below the AUXDATA line, not at the end of the actual line. For example, sed 4a'"' data.txt produced:
Variables = X, Y, Z
Zone T="Run 0020 Probe Points", I=19, J=1, F=POINT
DT=(double double double)
AUXDATA Zone_1_X = 28.180958
"
Everything I've tried either puts the double quote (") above or below the AUXDATA line. How do I get the double quote at the end of the AUXDATA line itself?