I have a file that has
Class,section,name
Math,02,Scott
What I need is a .csv that copies a column so it looks like below
Class
@ECHO OFF
SETLOCAL
(
FOR /f "tokens=1-3delims=," %%a IN (q22334682.txt) DO (
ECHO(%%a,%%b,%%c,%%a
)
)>new.csv
GOTO :EOF
-Assuming that the case of the class
header on the generated column in the file should match that in column 1.
I used a file named q22334682.txt
for my testing, putting the result in new.csv
.