Finding text and copy using DOS Batch

September 11, 2009 at 16:48:27
Specs: Windows XP

Thanks in advance if anyone could help me.

Is it possible to take a .txt file, find a keyword such as "google" and copy the whole line of text associated with that keyword, then copying every single line that contains that keyword to an output.txt?

Using windows DOS .bat files.

See More: Finding text and copy using DOS Batch

Report •

September 11, 2009 at 16:50:41
Nevermind, found out what I was doing wrong. For anyone else who needs this answered too, in the future, here is the simple code I was messing up :S

find "my pattern" mytextfile.txt >> newfile.txt

Report •
Related Solutions

Ask Question