Jump to content


merge text files


9 replies to this topic

#1 OFFLINE   TheFiresInTheSky

    aka "neighberaaron"

  • Members
  • PipPipPipPip
  • 1,738 posts
  • Gender:Male
  • Location:somewhere in the glove
  • Interests:computers, myspace, website building, skating, ITG, DDR, summers, hanging out at the mall.

Posted 24 September 2006 - 08:36 PM

i have alot of text files on my computer.
id like to be able to put some in a folder, add that folder into a program, and have the program merge them all together with a line break or something inbetween each.
also must be freeware.
thanks!

#2 OFFLINE   JohnDemolition

    Power Member

  • Members
  • PipPipPipPip
  • 924 posts
  • Gender:Not Telling

Posted 24 September 2006 - 09:56 PM

WinMerge can probably do this.

#3 OFFLINE   TheFiresInTheSky

    aka "neighberaaron"

  • Members
  • PipPipPipPip
  • 1,738 posts
  • Gender:Male
  • Location:somewhere in the glove
  • Interests:computers, myspace, website building, skating, ITG, DDR, summers, hanging out at the mall.

Posted 24 September 2006 - 09:58 PM

im pretty sure that can only merge 2 at once, which a simple batch could do.
i need to merge about 20.

#4 OFFLINE   Eldmannen

    Annoyance

  • Banned
  • PipPipPipPipPip
  • 2,198 posts
  • Location:Internet
  • Interests:Free software, open-source, GNU GPL, Linux, security, encryption, privacy, anonymity.

Posted 24 September 2006 - 10:15 PM

View PostJohnDemolition, on Sep 24 2006, 09:56 PM, said:

WinMerge can probably do this.
I like WinMerge, I sometimes use it to compare two configuration files to see what is different.



#5 OFFLINE   Glenn

    Power Member

  • Members
  • PipPipPipPip
  • 793 posts
  • Location:Canada

Posted 24 September 2006 - 11:59 PM

I haven't tried it myself but A.F.7 Merge Your Files may be of interest.

#6 OFFLINE   Eldmannen

    Annoyance

  • Banned
  • PipPipPipPipPip
  • 2,198 posts
  • Location:Internet
  • Interests:Free software, open-source, GNU GPL, Linux, security, encryption, privacy, anonymity.

Posted 25 September 2006 - 12:32 AM

If it is only 20, then you can merge them yourself manually with a text editor such as Notepad or something.



#7 OFFLINE   TheFiresInTheSky

    aka "neighberaaron"

  • Members
  • PipPipPipPip
  • 1,738 posts
  • Gender:Male
  • Location:somewhere in the glove
  • Interests:computers, myspace, website building, skating, ITG, DDR, summers, hanging out at the mall.

Posted 25 September 2006 - 01:22 AM

well its about 20 at a time.
they're lots of books, guides, stuff like that.
i noticed it did this when i converted pdf to txt files.
im gonna try your suggestion now glenn. :)

#8 OFFLINE   Andavari

    Captain Spectacular

  • Moderators
  • 13,327 posts
  • Gender:Male
  • Location:Shadow Moses

Posted 25 September 2006 - 02:40 PM

You can do it via a batch file as I do with my HOSTS files.

Note, that you need to create a spacer.txt file that has the line breaks you want and then merge them as such (note how the last filename doesn't have a + before it, that's the destination file):
COPY "Text File 1.txt"+"spacer.txt"+"Text File 2.txt"+"spacer.txt"+"Text File 3.txt" "Merged Text File.txt"

When you open the destination file you may have to remove one or more black square dots that may or will get inserted into the destination file.
Complexity of incoherent design.

#9 OFFLINE   TheFiresInTheSky

    aka "neighberaaron"

  • Members
  • PipPipPipPip
  • 1,738 posts
  • Gender:Male
  • Location:somewhere in the glove
  • Interests:computers, myspace, website building, skating, ITG, DDR, summers, hanging out at the mall.

Posted 25 September 2006 - 08:29 PM

glenn, that works great, thanks!
andavari, i think i tried doing something like that but found out i could only do 2 at a time.
the only reason i wouldnt make a batch to do that is you need to put in the names of all the files which takes some time.

#10 OFFLINE   Andavari

    Captain Spectacular

  • Moderators
  • 13,327 posts
  • Gender:Male
  • Location:Shadow Moses

Posted 25 September 2006 - 10:34 PM

View PostTheFiresInTheSky, on Sep 25 2006, 03:29 PM, said:

the only reason i wouldnt make a batch to do that is you need to put in the names of all the files which takes some time.
Yeah that's the annoying thing about Command Prompt or Windows itself. Although not so long ago I learned on this forum you can drag 'n drop files onto a WinXP Command Prompt window and the path and name will automatically be inserted for you without typing it in.
Complexity of incoherent design.