Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have files that are updated multiple times a minute and would like an extremely easy way to check on their progress. Within one of these files, the progress is repeatedly being appended (along with other stuff) to the end of the file, in a line that looks like this:
----------- Iteration 123 ------------
Is there a way to have a script (or something) look for this line at the bottom of the file, and if it finds it, to output it somehow (either in the shell window, or in the titlebar of the shell window, or something), and constantly check it and update it?
Also - the files are completed at a known iteration value (like 500 or 1000 or something), and so this script could stop when this value is reached (it could be an input parameter possibly)
I don't want the entire file printed out, because a lot of data is also printed out (besides the Iteration line). Is there a way to have it only print out the most recent lines that include "Iteration"