I have a data file in which I save datetime, pH, and Temperature. Once in a while, the Temperature misses one digit as shown below:
12-08-2017_14:52:21 Temp: 28.9 pH: 7.670
12-08-2017_14:52:42 Temp: 28.9 pH: 7.672
12-08-2017_14:53:03 Temp: 28.9 pH: 7.672
12-08-2017_14:53:24 Temp: 8.91 pH: 7.667
12-08-2017_14:53:45 Temp: 28.9 pH: 7.667
12-08-2017_14:54:06 Temp: 28.9 pH: 7.669
12-08-2017_14:54:27 Temp: 28.9 pH: 7.671
I'd like to remove the whole line with the error. I've found some solutions like this, but I don't understand how to implement it in python. Is there any specific way I should do it, either in python or bash?