Problems with .txt file output [SOLVED]

Hi guys,

I have a huge 441 MB .txt file with approx. 6,500,000 lines which I want to split into .txt output files (around 65 files) of 100,000 lines each that I can easily open in notepad.

Gsplit works fine doing that, but the real problem is when I open the output file (specified as .txt in Gsplit) in notepad the output is all like a single line. There is no recognition for the “Enter” or “New line” characters at the end of each line, which makes the whole exercise pointless!

I even tried reducing the number of lines per file to 10,000 and got a worse of result with something like this:
0000000000000000 0000000000 000000000000000000000000000000 00000000000…
(square zeroes)

Please help…

I’m using Windows 7 64-bit and I tried:

0x0D0x0A (didn’t work gave msg: “Gsplit searched for the pattern you entered and didnt find it in the source file (or the number of occurences is too high)” pon which I tried reducing the lines to 100000 (from 500000) which also didnt work)

0x0D (This worked but with the the problem in para 2 and on reducing lines to 10,000 per file with the problem in para 3 i.e gibberish)

0x0A (This worked but with the the problem in para 2 and on reducing lines to 10,000 per file with the problem in para 3 i.e gibberish)

I need the line by line structure to compare the corresponding .txt split files of two massive .txt files in another file comparison program which finds the large files too large to handle in memory (i.e loads entire file in memory, I think)

Please help… I know this is too descriptive but I need help soon.

Thanks in advance.

Just wanted to let y’all know. I used “Split before the nth occurence” (with 100,000 lines and 0x0A type) instead of split after and got the desired result.

I think I’m in love with Gsplit now…:smiley: :smiley: :smiley:

Keep up the great software G.D.G.!!!