I have a log file that I would like to break up into several filesTable of Contents*** Configuration Database*** Logs*** Configuration Logs*** Query Logs    .    .    and so onThe issue is, the titles of the section appear again in the body with the appropriate data or logs between the sections, so Id have to search for the second instance of each title, and copy the data up to the second instance of the next title.Body*** Configuration Database    (Data/Logs)*** Logs    (Data/Logs)*** Configuration Logs    (Data/Logs)*** Query Logs    (Data/Logs)Id basically like to take the debug text file, run a script against it, and have it break the file into many text files, one for each section in the Table of Contents, keeping the original intact. So I would basically have debug.txt, Configuration Database.txt, Logs.txt, etc, each having all the data in each section, up to when the new section starts. Any help would be greatly appreciated, as this is a little over my head :)
have a log file that I would like to break up into several files based on content
awk;sed;grep