|I need a simple throw away dos script that will read all the .txt files in a dir and output lines from each if they contain certain text. For example each file contains multiple lines that start with SHP, DTL, DTP, etc and if they start with SHP and contain string "12345", I want to output them to another file. So I will end up with one file containing all the appropriate strings from the .txt files. |
I've gotten it to read thru all the files in a dir, and to echo the complete lines in a specific file, but I am now stuck.
I have echo %%a:0,3% >> outfile and it's doing something weird.
If you've got any sample that does something like this, I can modify it to work. Thanks.