Hi, Can anyone help, I need to write a linux shell script which will either tail a log until a particular line appears (with for example "started") or perhaps have a script which has a loop - sleep - grepp check for line - then exit if found. I imagine this kind of thing has been done before and there's probably more than one way to do it but would appreaciate any examples Many thanks
Thanks - problem is there are previous instances of "started" within the log - that's why I was hoping someone might have come across this before - and have some kind of check / sleep / loop until found after present time.
ok. then something like this . if grep -q "string" file; then Also try http://sourceforge.net/projects/swatch/