Hello
i was wondering if you can assist in my batch file. i would the output file to be UNIX line ending (LF), however its defaults it to CRLF. I have been looking for 2 weeks for an answer. thanks.
@echo off
set "first=Yes"
(for %%a in ("H:\data dumps\folder\combine\*.csv") do (
if defined first (
type "%%a"
set "first="
) else (
more +1 "%%a"
)
))>"H:\data dumps\folder\combine\test.csv"
i was wondering if you can assist in my batch file. i would the output file to be UNIX line ending (LF), however its defaults it to CRLF. I have been looking for 2 weeks for an answer. thanks.
@echo off
set "first=Yes"
(for %%a in ("H:\data dumps\folder\combine\*.csv") do (
if defined first (
type "%%a"
set "first="
) else (
more +1 "%%a"
)
))>"H:\data dumps\folder\combine\test.csv"