|
-
October 20th, 2004, 08:55 PM
#1
batch file help
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:
(data1)
abunchofstuffabunchofstuffabunchofstuffabunchofstuffabunchofstuff
(data1)
(data2)
abunchofstuffabunchofstuffabunchofstuffabunchofstuffabunchofstuff
(data2)
(data3)
abunchofstuffabunchofstuffabunchofstuffabunchofstuffabunchofstuff
(data3)
I want to (from command line or batch file) do a find and output data2 to another file.
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!
Quitmzilla is a firefox extension that gives you stats on how long you have quit smoking, how much money you\'ve saved, how much you haven\'t smoked and recent milestones. Very helpful for people who quit smoking and used to smoke at their computers... Helps out with the urges.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|