0
votes
1answer
3k views

How to exit text files/logs when viewing them in Putty

I'm new to putty. Connected to a linux server to view/read some files. So, I opened a text log file that is constantly being updated, so I'm getting new lines every second. Is there a ...
2
votes
3answers
472 views

How to grab a random section in the middle of a huge file?

I have a huge log file of around 3.5 GB and would like to sample random sections in the middle of say 10 MB for the purpose of debugging what my application is doing. I could use head or tail ...
7
votes
7answers
10k views

Monitoring a file until a string is found

I am using tail -f to monitor a log file that is being actively written to. When a certain string is written to the log file, I want to quit the monitoring, and continue with the rest of my script. ...