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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -