I have to combine csv files into 1 file using a batch file.
The problem is that I only need the third row from each file.
How can I extract a specific row from a csv file in the windows command line / batch file?
I have found skip as command to skip lines from start of file, but I need to also skip the files from after the line I need.
This is my current code (after converting from xls to csv):
for %%i in (headers.csv) do (
for /f "delims=" %%j in ('type "%%i"') do echo %%j >> combined.csv
)
for %%i in (file*.csv) do (
for /f "skip=2 delims=" %%j in ('type "%%i"') do echo %%j >> combined.csv
)