windows - Batch or CMD to convert multi-line txt file to single line -
so running batch file kinds of commands , outputs results output.txt
it looks this: output.txt:
aaaaa
,bbbbb
,ccccc
,ddddd
is possible run command within same batch file use finished (output.txt) have move lines single line looks this:
aaaaa,bbbbb,cccccc,ddddd
for /f "usebackqdelims=" %%i in ("input.txt") @<nul set /p"=%%i">>"output.txt"
Comments
Post a Comment