I am doing some modifications on a text file; however the program is adding lines instead of modifying them.
As i am new to it, can you help or guide me?
Here is my code:
setlocal enabledelayedexpansion
for /f "delims=" %%a in (economic_changes.txt) do (
SET s='%%a
SET s=!s:;= !
SET s=!s:- =-;;!
SET s=!s: -=-!
SET s=!s:-;;-=-;-!
SET s=!s:-=%!
SET s=!s:_= %!
SET s=!s:;=';'%!
SET s=!s:;'';'=;;%!
echo !s!
) >> "%userprofile%\desktop\Economic_Folder\economic_changes.txt"