Tool to split huge text file into X number of lines?

ScreamingMidget

Elite Member
Joined
Mar 17, 2013
Messages
2,493
Reaction score
590
I have Scrapebox, but it seems to take too long and requires too much memory.

The text file has over 45 million lines.

I want to split this file into 45 separate files (1 million each).

Are there any other tools that can do this? I'd also like a tool that can randomize the lines in the text file.
 
there was a tool called FART.

If you cant find it,, you can simply do a small script that reads your txt file and creates smaller files every X amount of bytes read.
 
Use winautonation to split your text files but you will have to write the script your self. Also it willl take lots of time to get these down as it will be looping through the main file and copy to other files. Just setup it up and forget it there till it completes the job
 
I have Scrapebox, but it seems to take too long and requires too much memory.

The text file has over 45 million lines.

I want to split this file into 45 separate files (1 million each).

Are there any other tools that can do this? I'd also like a tool that can randomize the lines in the text file.
so what you can do is rename your txt file to csv first, then open in excel, create new column, fill in with RANDBETWEEN formula, drag the value all the way to bottom, then sort this randomized value

then save. after that, you can split using csv splitter

this is what i am using: https://sourceforge.net/projects/splitcsv/files/latest/download
 
so what you can do is rename your txt file to csv first, then open in excel, create new column, fill in with RANDBETWEEN formula, drag the value all the way to bottom, then sort this randomized value

then save. after that, you can split using csv splitter

this is what i am using: https://sourceforge.net/projects/splitcsv/files/latest/download

Unfortunately, when I tried to open the CSV file, Excel just give up - probably a memory issue.

I guess I'll just stick with Scrapebox and wait patiently.
 
Unfortunately, when I tried to open the CSV file, Excel just give up - probably a memory issue.

I guess I'll just stick with Scrapebox and wait patiently.
You should have better luck with lower-end PC by opening the txt file first, then ctrl + A and ctrl + C to copy whole content, and paste in clean excel sheet

then start from there
 
Unfortunately, when I tried to open the CSV file, Excel just give up - probably a memory issue.

I guess I'll just stick with Scrapebox and wait patiently.

Have you tried using the Text File Tool in ScrapeBox rather than the Export & Split on the search engine harvester? It should work better with large files, you can access it under Tools > Text File Tool (dups, sort, split etc)
 

Attachments

  • sshot-2.png
    sshot-2.png
    54.2 KB · Views: 9
Have you tried using the Text File Tool in ScrapeBox rather than the Export & Split on the search engine harvester? It should work better with large files, you can access it under Tools > Text File Tool (dups, sort, split etc)

Hi, yeah I've tried that too, which is a bit quicker. It's the randomisation bit that literally takes around 12 hours. I've started doing it overnight, so not too bad.
 
Hi, yeah I've tried that too, which is a bit quicker. It's the randomisation bit that literally takes around 12 hours. I've started doing it overnight, so not too bad.
I love doing stuff overnight or on servers. Set and forget. :)
 
Back
Top