This uses a helper batch file called findrepl.bat from - http://www.dostips.com/forum/viewtopic.php?f=3&t=4697
It will display from lines 1 to 5
type "file.xml" |findrepl /o:1:5
Question
I have a huge xml and I want to extract from it only the first lines using prompt commands in a txt. Is it possible? How can I do? Thank you everyone.
Solution
This uses a helper batch file called findrepl.bat from - http://www.dostips.com/forum/viewtopic.php?f=3&t=4697
It will display from lines 1 to 5
type "file.xml" |findrepl /o:1:5