I have a number of log files that I have to search for specific text. The information I need is spread over a couple of lines. For example:
Guest entry ID# 1447
<<unimportant line of text, variable in length>>
At 37/67
I am looking to gather the ID#, as well as the text following "At" on the third line.
I would like to export the information into a .csv file.
So far, the script that I have used is as follows (returning only the filename and ID#):
echo."Header 1","Header 2" > output.csv
( for %%a in (*.0*) do (for /f "tokens=5*" %%B in ('find "Guest entry " ^< %%a') do (echo."%%a",%%B,%%C))) >> output.csv
start "" output.csv
advTHANKSance
Bookmarks