How to find and replace a string
|
Original Message
|
Name: Rao
Date: August 15, 2001 at 14:23:52 Pacific
Subject: How to find and replace a string |
Comment: I need to find and replace a string using a bat file. Can anybody give me the code for this? Thanks in advance
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Grant
Date: August 15, 2001 at 19:16:32 Pacific
Subject: How to find and replace a string |
Reply: (edit)Rao, I don't know of a way directly in DOS, v6.x. I can tell you a few tools that can do this. One is a DOS port of sed, email me. Streaming Editor. Such a command line would be sed -s 's/strint to find/string to replace it with/' filename. I have heard that you can script edlin to do this for you. I would trust the former more than the later though. This should give you some place to look. If you want / need more help email me, drscriptt@yahoo.com, and I'll see what I can do.
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Michael
Date: August 15, 2001 at 19:36:41 Pacific
Subject: How to find and replace a string |
Reply: (edit)Use GSAR.exe (Global Search and Replace). Download it from: ftp://gatekeeper.dec.com/pub/micro/pc/simtelnet/msdos/txtutl/gsar110.zip Good Luck! -Michael
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: Anu
Date: November 30, 2001 at 11:03:36 Pacific
Subject: How to find and replace a string |
Reply: (edit)I would like a batch file to search and replace a string in the batch file. Thanks!!
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: