Concatenate text files with Windows command line, dropping leading lines

前端 未结 12 915
心在旅途
心在旅途 2020-11-30 18:03

I need to concatenate some relatively large text files, and would prefer to do this via the command line. Unfortunately I only have Windows, and cannot install new software.

12条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 19:01

    more +2 file2.txt > temp
    type temp file1.txt > out.txt
    

    or you can use copy. See copy /? for more.

    copy /b temp+file1.txt  out.txt
    

提交回复
热议问题