windows - Batch Echoing from Lateral to Horizontal -


i have following issue: regular list approximate information:

computer1 dateimplemented computer2 dateimplemented computer3 dateimplemented <this goes on while> 

what want do:

computer1,dateimplemented computer2,dateimplemented <etc> 

i have been trying bunch of ways output is:

computer1 dateimplemented. 

this going 1 of 50-50 scenarios solution stupidly easy or stupidly hard.

thank in advance!

@echo off setlocal enabledelayedexpansion set computer= /f "delims=" %%a in (list.txt) (    if not defined computer (       set "computer=%%a"    ) else (       echo !computer!,%%a       set computer=    ) ) 

as usual, batch flile may modified manage special batch characters, if required.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -