Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Finding and Replacing in a Batch File  (Read 3910 times)

0 Members and 1 Guest are viewing this topic.

Lobe

  • Guest
Finding and Replacing in a Batch File
« 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?

johnwill

  • Guest
Re: Finding and Replacing in a Batch File
« Reply #1 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).


Lobe

  • Guest
Re: Finding and Replacing in a Batch File
« Reply #2 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.

johnwill

  • Guest
Re: Finding and Replacing in a Batch File
« Reply #3 on: August 20, 2004, 07:45:50 AM »
Garbo is a good place for DOS utilities, DOS is NOT dead. :D