I think that
sed can be used to do this, but I'm not sure how. I'd like
sed to run through a file looking for two patterns, 'a' and 'b'. When it encounters a line that matches 'b' I want to show the last line that matched 'a'. How can this be done?