You are not logged in.
G'day all CMD Master,
I am looking for a little help here to print out a particular string in a log file. The data is actually 1 line below the matching line. I wanna print the data into a new log/text file.
So far, this is the only command that I've tried. I've tried to search online, but couldn't find anything useful.
findstr /n "VA_SC_P_01_IN" c:\Log.txt
Sample log data (Log.txt):
VA_SC_P_01_IN
strg_2.931|1.046|1.662|3.025|2.046|1.140|2.046
Many many thanks in advance.
Offline
This uses a helper batch file called `findrepl.bat` (by aacini) - download from: https://www.dropbox.com/s/rfdldmcb6vwi9xc/findrepl.bat
Place `findrepl.bat` in the same folder as the batch file or on the path.
findrepl "VA_SC_P_01_IN" /o:1:1 "<log.txt" >"newlog.txt"
Offline
Thanks foxidrive.
Will this line work if there are many events (repetitive) w the same string name, and I wish to print all of them?
Offline