I want to do some simple computation of the number of lines per minute added to a log file.
I want also to store the count for each second.
What I need is the output of the following command as a list which will be updated every second:
watch -n1 'wc -l my.log'
How to output the 'update' of the 'watch' command as a list?