PDA

View Full Version : Dos shell find-and-replace


Tahna Los
02-08-2007, 11:06 AM
I need to make a batch file to find one set of strings and replace it with another set of strings.

Does anyone know the proper command that can be used for this?

Thanks.

cindik
02-09-2007, 09:53 AM
If you can find an old copy of EDLIN, it can be done with that.

Otherwise, you'll need a third party prorgam.

kitchin
02-10-2007, 01:42 AM
There must be a simpler way, but if you want to learn sed or gawk, they are available for Win/Dos via UnixUtils (http://unxutils.sourceforge.net/). Maybe just easier to learn Perl at that!