• 0

text file splitter


Question

I am looking for a program that may not exist. I have a text file that is about 2.5 million lines in length. The beginning of each line starts with a number (from 1 to about 1300), and there could be 3000 lines starting with the same number. I would like a program that will split the text file into smaller files by the beginning of the line.

So all lines starting with 1 are copied and saved into one text file, all those starting with 2 are saved into a text file, etc.

Does anyone know of such a program. I have been (and still am) searching myself, but haven't been able to find anything.

Link to comment
https://www.neowin.net/forum/topic/413094-text-file-splitter/
Share on other sites

1 answer to this question

Recommended Posts

  • 0
  metallithrax said:

I am looking for a program that may not exist. I have a text file that is about 2.5 million lines in length. The beginning of each line starts with a number (from 1 to about 1300), and there could be 3000 lines starting with the same number. I would like a program that will split the text file into smaller files by the beginning of the line.

So all lines starting with 1 are copied and saved into one text file, all those starting with 2 are saved into a text file, etc.

Does anyone know of such a program. I have been (and still am) searching myself, but haven't been able to find anything.

Send me AN IM under TD437 on yahoo messenger and I will get you the program you are looking for.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Clearly a lot of gamers. And I'm sorry but you are wrong, my 7800x3d (single ccd) offers huge benefits to me as a AAA 1440p gamer. And it's pretty dumb to crap on 1080p gamers as they make up like 90+% of steam gamers. But no, the x3d does not just offer benefits to esport gamers (one of the stupidest things I've seen in a while AND THATS SAYING SOMETHING.) Abd when I built my rig with my 7800x3d, I paired it with a RX7900xt and couldn't be happier.
    • Um, someone needs to tell this author the 7800x3d is a single ccd and shouldn't be affected. If this only effects the dual ccd, 7800x3d owners need not worry
    • Popular File Explorer alternative Files gets signature check, improved dual-pane, and more by Taras Buria A new update has arrived for File Preview, a feature-packed file manager for Windows 10 and 11. Version 3.9.14 introduces a useful new feature for file properties, dual-pane improvements, the ability to resize columns in the Columns View, and more. Starting with the Properties dialog, it now features a "Signatures" tab where you can view digital signatures associated with the file and their properties, such as version, issuer, expiry date, and more. You can also click the "Details" button to open Windows' native dialog. The dual-pane feature has been tweaked for a more intuitive experience. The "Add pane" command is now "Split pane." There is a new quick action for toggling dual-pane mode on or off, and settings now have a dedicated section for dual-pane mode. Finally, columns in the Columns View are now resizable, and search results now have a header with your current query. In addition to releasing the update, developers said the following regarding performance complaints from users: Files Preview is available in the Microsoft Store. You can purchase it there to support developers. Alternatively, you can get the app for free from the official website, and if you want to help developers with contributions or ideas, check out their Discord and GitHub.
    • So the iPhone only has a leading position in a few markets around the world: US, UK, UAE, couple of other smaller ones. As a result of the far more mixed eco-system Whatsapp is a lot more popular outside of the US than I think a lot of American's may realise. It's pretty much the messaging standard in the UK
  • Recent Achievements

    • First Post
      Soeaker4thedead earned a badge
      First Post
    • First Post
      kryptickid earned a badge
      First Post
    • First Post
      Nemesis-IV earned a badge
      First Post
    • First Post
      Aidan Helfrich earned a badge
      First Post
    • Collaborator
      bullgod69 earned a badge
      Collaborator
  • Popular Contributors

    1. 1
      +primortal
      760
    2. 2
      ATLien_0
      187
    3. 3
      +FloatingFatMan
      151
    4. 4
      Xenon
      117
    5. 5
      wakjak
      113
  • Tell a friend

    Love Neowin? Tell a friend!