Merge Two text files line by line using batch script

后端 未结 1 932
小鲜肉
小鲜肉 2020-12-06 22:00

I have 2 text files; A.txt and B.txt and I want to merge them to make C.txt using a batch script.

However (here\'s the tricky part) I wish to do it so each line from

1条回答
  •  不知归路
    2020-12-06 22:53

    @echo off
    for /f "delims=" %%a in (a.txt) do (
        for /f "delims=" %%b in (b.txt) do (
            >>c.txt echo %%a %%b
        )
    )
    

    0 讨论(0)
提交回复
热议问题