I'm using sed
to look in a text file and replace any values that match 999
with -999
.
The problem I'm having is that the command is inserting WAY too many extra negative symbols...
Code:
sed -i "s/999/-999/g" /home/weather/data/.../master_tmp
Result:
------------------------------------------------------------------------------------------------------------------------------------------------999
Expected Result:
-999
Problem solved!
I had the sed command in a while/do/done
loop...
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments