By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,118 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,118 IT Pros & Developers. It's quick & easy.

File splitter program

P: n/a
Skc
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.
Mar 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
"Skc" <Sk*@discussions.microsoft.com> wrote in message
news:45**********************************@microsof t.com...
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.

Mar 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.