find and replace letters from a file

Dell / Dimension 4600i...
February 13, 2010 at 09:28:55
Specs: Microsoft Windows XP Home Edition, 2.793 GHz / 1534 MB
Have tried a few programs offered on line but they don't seem to work for what I need.

Need a script or bat for xp that opens .txt files, looks for n/, s/ or a/ and if found replaces it with a character . example = §

So if exist n/ replace n/ with a special character.

If I only had a few files I wouldn't bother but there seems to be over 200 files to edit. Each file contains one or more different characters that need to be changed.

Hope someone can get me started on this.§Å


See More: find and replace letters from a file

Report •

February 13, 2010 at 13:28:07
as long as there's no weird stuff (<, >, = |,% ), batch might
handle it:

@echo off>newx
for /f "tokens=*" %%a in (x) do (
set xx=%%a
call :bb
goto :eof

set xx=%xx:n/=§%
set xx=%xx:s/=Å%
>> newx echo %xx%

if there's weird stuff, use vbscript or a language.
if that's the case, post again and someone will work it up.

Report •
Related Solutions

Ask Question