I store data from a nc output in a file 24/7 hours. It is a datalogger of temperature.
This file amroutput will be over the time very big. (Every 10 seconds a line).
For one app I will have the last entry in a file amr_last_output.
So I use:
tail -f -n1 amroutput > amr_lastoutput.
With > i will overwrite the file amr_lastoutput everytime when tal make an output.
On mac osx we are the output of tail to the output file is appended, as in >> command.
What can I do?
Thanks for answers!