Hello All ! I have a txt file with the following lines: 04/12/14 23:15:00 2464.44 59 52 23.4 04/12/14 23:15:20 2474.41 55 52 31.4 04/12/14 23:15:40 2484.40 55 54 31.8 04/12/14 23:16:00 2484.39 56 55 44.5 04/12/14 23:16:20 2494.37 59 57 64.3 ... I would like to highlight the value of the last row of the fourth column (here, the '59' value). Any idea?
How to check a last value from text file ?
MonitorMan · 13 abr 2014, 1:23 · 5 mensajes · 81 visitas
- Inicio del debate
Hello Use system commands to extract values from the text file. Regards Ivo
Thanks Ivo, but an example ? i tried it : #TEMP-CPU-MONITORING module_begin module_name Realtemp module_type async_string module_exec dir c:RealTemp | grep RealTempLog.txt | gawk #"{print $(NF-2)}" | tail -1 module_description RealTemp module_end it does not work, I do not control the grep and gawk ...
Hello Try using windows commands to obtain the necessary information. In the following link you can fin a guide to the windows command line prompt: http://www.computerhope.com/msdos.htm Regards Ivo
Thanks ! I've found. I found the correct syntax. In fact I use 'realtemp' that displays the temperature in a text file and I get the last value of the file column 4 or 5: #TEMP-CPU-MONITORING module_begin module_name Temp CPU module_type generic_data_string module_exec dir "C:RealTempRealTempLog.txt" | gawk "{print $4}" "C:RealTempRealTempLog.txt" | tail -1 module_description Temperature CPU module_end
Entra en tu cuenta para publicar.
