Computer Hope

Microsoft => Microsoft DOS => Topic started by: Lobe on August 19, 2004, 05:18:37 AM

Title: Finding and Replacing in a Batch File
Post by: Lobe on August 19, 2004, 05:18:37 AM
Hi,

Its great to join you wonderful people, I feel it!

I have a problem with my batch file. I have a text file in which I want to find and replace certain strings using a DOS batch file. Its sort of given me jitters. Anybody with an idea?
Title: Re: Finding and Replacing in a Batch File
Post by: johnwill on August 19, 2004, 06:17:50 PM
Look here http://garbo.uwasa.fi/pc/editor.html for texrep12.zip, the description follows:

   TEXREP is a program to make text replacement changes in a file
   without using an editor. It will work on any type file of any size
   replacing any character(s). Its DOS syntax is very easy to use.
   
   Every month or so I need a program to make changes in a text file
   that my editor can't easily handle. Or I want to make the same
   change in several files. Such programs exist, but they make a
   single change or ask you to build a table file which means you have
   to look at the documentation each time. TexRep has a simple syntax
   and a one page help screen (enter 'texrep' with no parameters), so
   the documentation shouldn't be needed often. It will also display
   an ASCII/numeric conversion table (enter y after the help screen).

Title: Re: Finding and Replacing in a Batch File
Post by: Lobe on August 20, 2004, 01:02:45 AM
Hey, Johnwill,

Thanks, it did the trck. No more jitters. Tried it on voluminous files, and pronto, it was cool bananas.
Title: Re: Finding and Replacing in a Batch File
Post by: johnwill on August 20, 2004, 07:45:50 AM
Garbo is a good place for DOS utilities, DOS is NOT dead. :D