Split Large File – How to Split a Large File on Windows

7-ziptext editingwindows xp

Is there a tool to split large text file (9Gb) into smaller files so that I can open it and look through?

Anything usable from command line that comes with Windows (XP)?

Or what's the best way to split it? Can I use 7z to create separate volumes and then unzip one of them separately? Will it be readable or does it need all the other parts to unzip into the big file again?

Update

I put together quick 48 lines python script that split the large file into 0.5GB files which are easy to open even in vim. I've just needed to look through data towards the last part of the log (yes it is a log file). Each record is split across multiple lines so grep would not do.

Best Answer

There is a freeware Windows file splitter called HJSplit

Available here. The website claims it can split files of any type and size, but 9GB is a big file.

Related Question