Concatenate text files with Windows command line, dropping leading lines

前端 未结 12 911
心在旅途
心在旅途 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 18:42

    The help for copy explains that wildcards can be used to concatenate multiple files into one.

    For example, to copy all .txt files in the current folder that start with "abc" into a single file named xyz.txt:

    copy abc*.txt xyz.txt
    

提交回复
热议问题