Sample Header Ad - 728x90

Output of 'watch' command as a list

47 votes
7 answers
70207 views
I want to do some simple computation of the number of lines per minute added to a log file. I also want 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 can I output the 'update' of the 'watch' command as a list?
Asked by JohnJohnGa (571 rep)
Nov 19, 2012, 10:48 AM
Last activity: Apr 24, 2024, 01:01 PM