Little help! I'm having some serious brain farts today. I drank a little too much last night. :(
Say I have a .txt file that contains some data.
The data is separated by different headings. Something like this:
I want to (from command line or batch file) do a find and output data2 to another file.Quote:
(data1)
abunchofstuffabunchofstuffabunchofstuffabunchofstuffabunchofstuff
(data1)
(data2)
abunchofstuffabunchofstuffabunchofstuffabunchofstuffabunchofstuff
(data2)
(data3)
abunchofstuffabunchofstuffabunchofstuffabunchofstuffabunchofstuff
(data3)
So, I'm using
find "(data2)" datafile.txt >> newdatafile.txt
All it copies over is the "(data2)" headings but nothing between.
How can I make it copy ALL the contents between the (data2) headers?
Thanks in advance!
