I have a large xml file (40 Gb) that I need to split into smaller chunks. I am working with limited space, so is there a way to delete lines from the original file as I write them to new files?
Thanks!
Its a time to buy a new hard drive!
You can make backup before trying all other answers and don't get data lost :)
Change python file in place