Computing.Net > Forums > Programming > Replace text in text file

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.

Replace text in text file

Reply to Message Icon

Name: imrsi25
Date: May 17, 2009 at 09:11:23 Pacific
OS: Windows XP
Product: Lenovo / C200
Subcategory: Batch
Comment:

If I have next text in text file:

aaaaaaa ccccccc ggggggg MARKO llllll
nnnnn MARKO jjjjjjj kkkkkkkkk MARKO
bbbbbbbb nnnnnnnn MARKO dddddd

I'd like a batch file which will be able to replace MARKO with MARKO-1, MARKO-2,...

So my new.txt has to looks like:

aaaaaaa ccccccc ggggggg MARKO-1 llllll
nnnnn MARKO-2 jjjjjjj kkkkkkkkk MARKO-3
bbbbbbbb nnnnnnnn MARKO-4 dddddd

Can someon hel me?



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Replace text in text file

find and replace string in a file www.computing.net/answers/programming/find-and-replace-string-in-a-file/19987.html

nt batch to replace string in srt file www.computing.net/answers/programming/nt-batch-to-replace-string-in-srt-file/19260.html

Replacing text with batch???(HELP) www.computing.net/answers/programming/replacing-text-with-batchhelp/18783.html