How to process continuously updating file from start of fail? .

Question!

1 How to process from start of a continuously updating file( 1 --> infinite) ? 2 tail -f / tail -n10 -f solution is not correct, because it processing the file from end or some n lines form end of file. But i need to process the file from start of file to forever(continuous).



Answers

From tail --help:

-n, --lines=K            output the last K lines, instead of the last 10;
                           or use -n  K to output starting with the Kth

So,

tail -f -n  1
By : Kenney


This video can help you solving your question :)
By: admin