Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
batch editing txt file
Name: datec Date: July 12, 2008 at 14:16:15 Pacific OS: 2k/xp CPU/Ram: 512 Product: different
Comment:
hey tech guys, i am working on an batch file, that needs to get the following done: 1. download an txt file from an ftp (easy, already done) 2. open this txt file, look through and delete all rows, next to those, which begin with 7 (changing) digits.
Name: klint Date: July 12, 2008 at 16:50:14 Pacific
Reply:
"delete all rows, next to those, which begin with 7 (changing) digits" -- do you mean the rows above those that begin with 7 digits? Or the rows below them? What about the rows that begin with 7 digits themselves?
0
Response Number 2
Name: datec Date: July 12, 2008 at 21:30:10 Pacific
Reply:
I am sorry... I mean an text file like this:
abcdef 875 defghi +abc defghijk defghi 4567890 abc 4673890 important row 12345 cdefghi ijkl ijklmno 1234567 more 2345789 also important row rstuvwx cdefghikj
from an text file like this I just want to get the important rows. the rows, that begin with 7 digits.
thank you a lot, I know it's difficult!
0
Response Number 3
Name: Razor2.3 Date: July 13, 2008 at 01:19:57 Pacific
Name: Mechanix2Go Date: July 13, 2008 at 04:57:33 Pacific
Reply:
Hi Razor2.3,
yep, findstr comes with 2k.
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 5
Name: datec Date: July 13, 2008 at 19:39:37 Pacific
Reply:
hey guys, you're awesome!!! that's great. i'm just asking myself, how to get not just the numbers but also the rest of the row also "echo"ed >> to another txt-file. is there anyway to say like if you findstr "^[0-9][0-9][0-9][0-9][0-9][0-9][0-9]", than mark whole row and "echo" it out to another file.
Thanks a lot for your efforts...
datec
0
Response Number 6
Name: Razor2.3 Date: July 13, 2008 at 22:53:26 Pacific
Summary: I Was wonderering if it was possible that through a batch you could save your information in a .TXT File so you give information and when you exit the batch file it saves it in to a .TXT file or in a ...
Summary: Need help writing a batch that will open a txt file, find a date (that is in an http address), then change that date to current. Possible? ...
Summary: So I need to make a batch file to change a single word in a text file. For example, in a file.txt file there are lines, this is a text file I want to be able to change the word text to awesome. I hop...