Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have many txt files inside a folder and I want to replace/remove some characters in them. I want to remove "{", "}", and want to replace "*^" by "E" (here *^ has to be together).

Is there a way to do this in a batch? I am now doing one by one which is really time consuming. I am using Windows 7.

Thank you.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

I'm guessing you mentioned "batch" simply because you're looking for a way to automate this and thought a batch file might be the best solution. Well it isn't, so unless you specifically need to use a batch file (in which case I'll modify/delete this answer), use a better tool for the job instead such as Notepad++ (or any other comparable full-featured text editor):

1

There are many other programs whose sole job is text search/replace, for example grepWin:

2

share|improve this answer
1  
Thank you for the Notepad++. It's really convenient. –  Patrick Li May 11 '13 at 3:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.