« Library ebooks now shown in Google searches | Main | Sneak Peek! New Technology Coming Soon! »

Easily combine text or csv files

I am totally nerding out. I admit it. I had a folder full of text files, and I wanted to dump them all into a single Excel worksheet. It turns out there is a super-easy way to do this, provided you're willing to open up a command line and type in a few DOS commands!!

Here's where I found the instructions:  https://www.rondebruin.nl/win/s3/win021.htm

In my case...

  1. I put the .log files (which are all really text files with a fancy extension) in a folder named "logs" on my desktop
  2. I clicked on the Windows Start button and typed cmd to open a command prompt
  3. My path showed that I was already in my user account. 
  4. I typed cd desktop/logs to navigate to the "logs" folder on my desktop
  5. I typed copy *.log all.txt  to copy ALL the .log files into a single text file titled "all.txt"
  6. Then I opened Excel, chose File->Open and navigated to the all.txt file

I am ridiculously excited about this trick!


Feed You can follow this conversation by subscribing to the comment feed for this post.

Post a comment