I have a large number of Terminal windows, that I keep open so I can have a record of what I did, and what the responses were.  The windows all have titles indicating the problem space they're for, but sometimes something gets done in the "wrong" window.

How can a do a single search across all the windows? Is there an app out there that will read the saved Terminal contents, and write them as text?  Even better, is there source code for doing that?