I am trying to remove entries from a vertical report that looks like this.
report start : hi good morning
report (1234) hi
10/10/2013
line unequal
good morning hi good morning (123:)
20131212020202312312********
report start : hi good evening
report (1234) hi
10/10/2013
good evening hi good evening (123:)
20131212020202312312********
report start : hi good morning
report (1234) hi
10/10/2013
good evening hi good evening (123:)
20131212020202312312********
I am trying to remove complete entries where "evening" is present and "morning" is not. In short, the report should end up like this:
report start : hi good morning
report (1234) hi
10/10/2013
line unequal
good morning hi good morning (123:)
20131212020202312312********
report start : hi good morning
report (1234) hi
10/10/2013
good evening hi good evening (123:)
20131212020202312312********
I had though about concatenating everything between "**", where each line would end with the series of asterisks. They are always the same length. Then use findstr to remove entries, but how do I reconstruct the entire report? It must return to a vertical format. To add to complexity, the results are in various indentations in the txt file.
I have been unable to use "*" as a delim, and therefore, cannot introduce a for /f loop to concatenate. This is how far I've gotten.
Thanks