0

I have folder with 600+ .txt files.
Each file has couple lines of short text.
I want to create another file and write text from all those files to new one.
Are there some Terminal commands or tools to do this?

1 Answer 1

7

This command will take all .txt files combine to a single file.

cat ~/name_of_folder/*.txt > ~/combined.txt

2
  • error message: cat: /Users/me/folder/*.txt: No such file or directory Commented Aug 15, 2016 at 11:16
  • 1
    Open Terminal, write cat drag all text files you want to import to the terminal window, write ` > ` drag an empty text file to the Terminal window, press enter in Terminal.
    – Niklas
    Commented Aug 15, 2016 at 11:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .