Concatenating multiple text files into a single file in Bash

前端 未结 12 1619
眼角桃花
眼角桃花 2020-11-29 15:31

What is the quickest and most pragmatic way to combine all *.txt file in a directory into one large text file?

Currently I\'m using windows with cygwin so I have acc

12条回答
  •  生来不讨喜
    2020-11-29 16:03

    You can use Windows shell copy to concatenate files.

    C:\> copy *.txt outputfile
    

    From the help:

    To append files, specify a single file for destination, but multiple files for source (using wildcards or file1+file2+file3 format).

提交回复
热议问题