Replacing "" by " in every line of a text file
Posted: 23 Oct 2020 04:30
Hello !
I have this problem :
I have a text file with lines that look like this :
I cam up with a program to add " to every line :
So it gives :
Any help would be very appreciated
Thank you in advance.
I have this problem :
I have a text file with lines that look like this :
as you can see, some " are missing on the first line"300040082800016351540;01;EUR;310719; 84,67-;"
"300040082800016351540;07;EUR;010819; 84,67-;"
"300040082800016356293;01;EUR;310719; 261,83+;"
"300040082800016356293;07;EUR;010819; 261,83+;"
"300040082800016356390;01;EUR;310719; 183,16+;"
"300040082800016356390;07;EUR;010819; 183,16+;"
"130880909300350900060;01;EUR;300719; 20127893,81+;"
130880909300350900060;04;EUR;010819;310719;0000360 ;0000000;02; "29,64+;"
130880909300350900060;04;EUR;010819;310719;0000356 ;0000000;02; "39,36+;"
130880909300350900060;04;EUR;310719;310719;0000358 ;0000000;45; "58,94+;"
130880909300350900060;04;EUR;010819;310719;0000362 ;0000000;02; "68,88+;"
130880909300350900060;04;EUR;010819;310719;0000366 ;0000000;02; "296,34+;"
130880909300350900060;04;EUR;010819;310719;0000368 ;0000000;02; "321,21+;"
I cam up with a program to add " to every line :
Code: Select all
setLocal EnableDelayedExpansion
for /f "delims=" %%a in ('type *.txt') do (
set test="%%a
echo !test! >> fichier_texte_traitee.txt
)
So now, i want to replace the "" with ", but i've been searching and trying for hours, i can't find a way to do this...""300040082800016351540;01;EUR;310719; 84,67-;"
""300040082800016351540;07;EUR;010819; 84,67-;"
""300040082800016356293;01;EUR;310719; 261,83+;"
""300040082800016356293;07;EUR;010819; 261,83+;"
""300040082800016356390;01;EUR;310719; 183,16+;"
""300040082800016356390;07;EUR;010819; 183,16+;"
""130880909300350900060;01;EUR;300719; 20127893,81+;"
"130880909300350900060;04;EUR;010819;310719;0000360 ;0000000;02; "29,64+;"
"130880909300350900060;04;EUR;010819;310719;0000356 ;0000000;02; "39,36+;"
"130880909300350900060;04;EUR;310719;310719;0000358 ;0000000;45; "58,94+;"
"130880909300350900060;04;EUR;010819;310719;0000362 ;0000000;02; "68,88+;"
"130880909300350900060;04;EUR;010819;310719;0000366 ;0000000;02; "296,34+;"
"130880909300350900060;04;EUR;010819;310719;0000368 ;0000000;02; "321,21+;"
Any help would be very appreciated
Thank you in advance.