(November 24, 2022, 02:09 AM)Magroll Wrote: (November 23, 2022, 11:34 PM)drsnape Wrote: (October 20, 2022, 07:37 AM)Magroll Wrote: Given: Database as a text file, 100GB in size. It is necessary to sort alphabetically, ignoring the register (but not changing it!). How do I sort it? I've tried writing a Python program, but I'll get old before it gets through.
i have a splitter program i can sen you if you need. it can simply split txt or csv file into multiple number of files, all you have to do is to mention what do you want each file size to be. Easy.
How will this help me? Then they will need to be sorted separately and somehow glued together. It's not clear how.
https://askubuntu.com/questions/28847/text-editor-to-edit-large-4-3-gb-plain-text-file
Split and join are built into linux if that's what you're using. Don't use other programs when it's already a shell command! Probably something similar for windows already installed.
The link I gave lists a few text editors with higher memory availability to open larger files.
I was also going to say after getting it sorted, it'd probably be easiest to write a simple script to query it. I've made projects just using html and javascript (ok and a little php) to query text and sql files then print out on the screen. Makes it a lot easier writing it yourself, although you could also just use grep and write a command to display it all in terminal, even with the large file.