Suppose I have a file which is getting appended in every seconds/minutes. At first time I have read whole file and stored the last line number(eg: last_line_numer was : 2000) later I want to read file using 'grep' command to look for a pattern from line number 2001 to end of file. How we can achieve this?
First time I ran below command:
grep 'tracker.php' apache.log | cut -d' ' -f1-8
Now I want to ran above command with specific line number in grep param.