I have a logfile with the following data in it:
Sat Sep 20 11:25:01 BST 2014 -- temp=53.0'C -- message from script /usr/src/scripts/wifi_test_2.sh
Sat Sep 20 11:26:01 BST 2014 -- temp=53.0'C -- message from script /usr/src/scripts/wifi_test_2.sh
Sat Sep 20 11:27:01 BST 2014 -- temp=53.0'C -- message from script /usr/src/scripts/wifi_test_2.sh
There are many more logs but I've shown only 3.
I have a script with the following commands in it, but the data is not in the correct format for GNUplot to work.
SCRIPT:
set terminal png size 400,300
set output '/usr/src/scripts/plots/core_temp_data/output.png'
plot "/var/log/rebootlogfile.log" using 4:8 with lines
Is it possible to plot 11:25:01 against 53.0 with a gnu command,or gnu and awk, or do I have to strip out the log file of unnecessary data?
plot: command not found.
Are you sure the command you're looking for isplot
?plot "<awk '{commands;}' file" using ...
Placing them all together is just coding.