I have a CSV file which has 3 columns. I'm trying to extract the value in the column third and remove quotes from values and write it into another csv. The columns are seperated with "," so I select the column third with
for /f "tokens=3 delims=, " %%a in (example.csv) do (
echo %aa >> example2.csv
)
It works perfect but the data comes with quotes like "5884" so I tried
for /f "tokens=3 delims=, " %%a in (example.csv) do (
set /A tirnak=%%a
echo %%tirnak >> example2.csv
)
When I "set /A tirnak=%%a" output value has no quotes in CMD and I can make it echo in a text file, but when I use it in the loop output in the file is
ECHO is on.
I tried echo %tirnak%, echo %tirnak, echo %%tirnak but the output in the file is either ECHO is on, empty, sth like %tirnak etc. How can I do that? Thank you.