I have a text file and I\'m interested to have only a part of it, all that is included between wordA and wordB
Is that possible using a cmd batch file?
This uses a helper batch file called repl.bat from - http://www.dostips.com/forum/viewtopic.php?f=3&t=3855
repl.bat
Put repl.bat in the same folder as the batch file.
@echo off type infile |repl ".*wordA(.*)wordB.*" "$1" >outfile