Benches macOS

2

How to combine numerous text files into o…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Is there a way to combine numerous text files (200+) into one without having to type the title of each file? Is there an application to do this for Mac?

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    VikingOSX

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    In the Terminal, change directory to the folder in which only those text files reside. Then, concatenate all 200 text files in alphabetical order into one text file on your Desktop.

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

    and if you are certain that there are only text files in this location, whether with, or without the .txt extension, then you can abbreviate the command further:

    cat * >> ~/Desktop/combined.txt

  2. 0

    Niel

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Download BBEdit Lite and drag the files into an open document window.

    (168822)