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?

7

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

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

  • error message: cat: /Users/me/folder/*.txt: No such file or directory – Volodymyr Kulyk Aug 15 '16 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 Aug 15 '16 at 11:31

You must log in to answer this question.

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