Except the way Compo suggested (using more
with +1
which will exclude the first line), you can use a for /F
loop:
@echo off
for /F "skip=1 delims=" %%A IN (file.csv) do (echo %%A)>>file1.csv
which, with the option skip=1
will skip the first line.
Another way would be to loop through the output of more
command:
@echo off
for /F "skip=1 delims=" %%A IN ('more "file.csv"') do (echo %%A)>>file1.csv
See the help pages of the following commands in cmd to learn more:
for /?
echo /?
more /?
0
solved How to : Skip the Header record from one .csv and Copy the Records to another csv file using command prompt or batch [closed]