Concatenating multiple text files into a single file in Bash

前端 未结 12 1593
眼角桃花
眼角桃花 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:04

    The Windows shell command type can do this:

    type *.txt >outputfile
    

    Type type command also writes file names to stderr, which are not captured by the > redirect operator (but will show up on the console).

提交回复
热议问题