1

Tail a file with "tail -f" until text is seen

tail -f /path/to/file.log | sed '/^Finished: SUCCESS$/ q'

August 22, 2012bashoneliners

Explanation

tail -f until this exact line is seen:

Finished: SUCCESS

The exit condition does not have to be an exact line, it could just well be a simple pattern:

... | sed '/Finished/ q'