May 28, 2021

Combine Files using BBEdit

Earlier this week I had a bunch of Apache log files that I wanted to combine into a single file. I was trying to figure out the best way to do it. A quick Google search showed me a solution from 2014. The purpose of this post is to say that it still works!

B Bedit Combine Files

In BBEdit

Here are the steps to quickly merge a bunch of files:

  1. Open up BBEdit
  2. Create a new Text Document (Command N)
  3. Go Under Edit menu and select Insert then “File Contents...”
  4. Select the files that you wish to add then click Insert

Alternate Way

  1. Open up BBEdit
  2. Create a new Text Document (Command N)
  3. In the Finder drag and drop the text files into the BBEdit window

Using the Command Line

Another solution is to use the Cat Unix command in Terminal. Here's a sample of what that would look like:

cat access.log.* >> website.log

Comments

Add your Comments

Feel free to leave a comment about this post.

- Feel Free to add HTML to your comment!