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

Author Topic: String Replace in a file in command line  (Read 2859 times)

0 Members and 1 Guest are viewing this topic.

Kendall Chen

  • Guest
String Replace in a file in command line
« on: April 16, 2004, 05:38:58 PM »
Hi All,

  I was wondering if anyone knows how to do a string replace in a file using the dos command line? For example, if I have the string "abc" in multiple places in a file, how can I produce another file with all the "abc" replaced with "def". Your help is greatly appreciated. Thanks!!

Kendall.

marco

  • Guest
Re: String Replace in a file in command line
« Reply #1 on: April 18, 2004, 09:21:48 PM »
The SED utility does exactly what you are trying to accomplish.

marco

  • Guest
Re: String Replace in a file in command line
« Reply #2 on: April 18, 2004, 09:22:32 PM »
do a google search for the utility