How do i split a text file?

7 replies
I have a text file with 100,000 twitter usernames in it, one per line.

I need to save it out as 50 text files, each with 2,000 usernames in it, is there a tool i can use to do this??
#file #split #text
  • Profile picture of the author Bruce Wedding
    This will do it:

    GSplit - File Splitter - Split Any File - Split Text and Log Files

    I just tested this and its a bit confusing how to do what you want to do. Setup your split like this :

    {{ DiscussionBoard.errors[3357972].message }}
    • Profile picture of the author sarahstaar
      WOW!!!

      thanks!!!!!!!!!!!!!!!!!!!!!!



      I have been Googling all day to try to find out how to do this.

      Thanks.
      {{ DiscussionBoard.errors[3358037].message }}
      • Profile picture of the author Lloyd Buchinski
        Looks like it is all taken care of now, but just in case. I would have just opened it with a text editor that numbers the lines, and then copied and pasted each 2000 into a separate file.

        Notepad++ will do that job.
        Signature

        Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat

        The KimW WSO

        {{ DiscussionBoard.errors[3359674].message }}
        • Profile picture of the author Bruce Wedding
          Originally Posted by Lloyd Buchinski View Post

          Looks like it is all taken care of now, but just in case. I would have just opened it with a text editor that numbers the lines, and then copied and pasted each 2000 into a separate file.

          Notepad++ will do that job.
          I love Notepad++ and use it all the time. But your suggestion would take over an hour, figuring about a minute for each copy, paste and typing in new filenames.
          {{ DiscussionBoard.errors[3359711].message }}
      • Profile picture of the author Drake Kerrigan
        Originally Posted by sarahstaar View Post

        I have been Googling all day to try to find out how to do this.
        That's why you should always come to WF. Could've saved lots of time

        Now, if someone here can tell me how to make my teenagers behave and my dogs shut up, i'll be set lol
        {{ DiscussionBoard.errors[3359691].message }}
        • Profile picture of the author Bruce Wedding
          Originally Posted by Drake Kerrigan View Post

          Now, if someone here can tell me how to make my teenagers behave and my dogs shut up, i'll be set lol
          Simple.

          Take the dogs down to the lake, put them in a burlap sack with a few bricks and toss them in. Then tell the kids if they don't behave, they're next.
          {{ DiscussionBoard.errors[3359705].message }}
          • Profile picture of the author Drake Kerrigan
            Originally Posted by Bruce Wedding View Post

            Simple.

            Take the dogs down to the lake, put them in a burlap sack with a few bricks and toss them in. Then tell the kids if they don't behave, they're next.
            LOL nice one
            {{ DiscussionBoard.errors[3359713].message }}

Trending Topics