how to replace comma with semicolon and remove double quotes in file using a bat file -


actually poor @ batch programming...

i have csv file in data this

"column1","column2","column2" "value1","value2","value3" 

i have replace comma semicolon , remove double quotes.

my output should this..

 column1;column2;column2  value1;value2;value3 

i have tried this..

@echo off setlocal enabledelayedexpansion  /f "delims==" %%a in (input.csv) (   set string=%%a & echo !string:,=;! >> output.csv ) 

it replacing comma semicolon (i dont know how is) how remove double quotes....

@echo off     setlocal enableextensions disabledelayedexpansion     (for /f tokens^=1^-3delims^=^,^" %%a in (input.csv) (         echo(%%a;%%b;%%c     ))>output.csv 

it real case simple has been posted, define "problematic" characters delimiters in for command them removed.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -