I have a large text file, I want to see the lines containing "time spent" in this text file, I use:
grep -in "time spent" myfile.txt
But I’m interested only in the lines after 50000. In the output I want to see lines after 50000 and that contain “time spent”. Is there a way to do this?
You can tail it, then grep: