Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replace string in dos

Status
Not open for further replies.

pho01

Programmer
Mar 17, 2003
218
US
using dos command, how do I replace/delete a character from a string?

For example:

%strvar%="error found in "prod_4" procedure"
how do I remove the " char in the above variable so the variable can become:

%strvar%="error found in prod_4 procedure"

Thanks,
Phuong
 
Don't think there is a built-in command in DOS for this, but you can download grep or sed for DOS (perform a google search on Search and Replace in DOS) and you should be able to find a tool appropriate for you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top