File splitter program

G

Guest

I have used a program called chainsaw to split the file into manageable
chunks, but with issues as the file contains crlf (carriage return line feeds
on every line) and have found chainsaw totally useless as it splits the file
in the middle of a crlf (not on the actual crlf - or end of the line it is
on):

e.g.

line 1: a,b,c,d,e [crlf] --> the [crlf] field you cannot see as it is
hidden
line 2: 80,999 [crlf]
line 3: e,f,d,g [crlf]
.........
line x: y,z [crlf]

In this txt file (which can be 2GB), you can imagine that chainsaw will
split the file in the middle of a line, so line 3 could look like: e,f only
instead of e,f,d,g

So I need a utility that splits not only on size but on size and at the end
of a [crlf].

Please help.

The chainsaw program I refer to is here:
http://www.frankenwandern.de/software/chainsaw.html

Thanks in advance.
 
S

SStory

Depends on your purpose of splitting it? Is it doing a binary split?
Are you splitting to store and then reassemble? If so the issue mentioned
would be resolved by glueing it back together.

If not, I suspect this is just binarily splitting the file at x number of
bytes and thus has no idea about your CR. In that case you next some sort
of text chainsaw that splits into documents or something that knows what you
are splitting and how to handle CRLF's
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top