Jean-Marc Lasgouttes wrote:

>>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]>
>>>>>> writes:
> 
> Angus> No, but that's why we use a loop in the sed script. The list of
> Angus> languages always ends with 'loaded.', so get the next line if
> Angus> the pattern space doesn't, remove the embedded new line and go
> Angus> to the 'loop' label. Having finished looping, either because
> Angus> you've found 'loaded.' or because you've reached the end of the
> Angus> log file, then print out what you've got, but only if you found
> Angus> 'loaded.'.
> 
> Clever. Actually, I think we should do something like that when
> parsing .log files, but I am not sure how.

Can you give an example?

-- 
Angus

Reply via email to