At 13.45 12-05-2000 -0500, Samuel W. Heywood:
>I have a problem. I have a very large text file consisting of a
>concatenated archive of emails (501,382 bytes). I want to split it
>up into several smaller and more manageable files.
[clip]
>Such a program is probably available as freeware on some download site.
>Suggestions anyone?
Give CHOP (FREEWARE) a try. It should do what you want. Sorry, that I don't
remember where I got it from, but if everything else fail and you want it,
I can send you a copy (CHOP.ZIP 21790 bytes). Here is a small extract from
the doc:
CHOP
Version 3.1
Author: Walter J. Kennamer Compuserve PPN: 74025,514
CHOP breaks big files into smaller ones. A number of options are
supported to determine exactly where the breaks take place. This
version also allows you to extract a portion of a file.
***[clip]***
You can redefine the return string to be something else. For example,
Compuserve messages begin with the "#:" character sequence. By
defining this sequence as the return string, you instruct CHOP to split
the file only between messages--no message would be split across CHOP
output files. You would define "#:" as the return string by using the
switch "-n#:" on the command line (see examples).
CHOP ordinarily splits a file after the return string. You can make
the split happen before the return string by using the -h switch. You
would probably want to use this switch in the preceding Compuserve
example since the "#:" characters mark the beginning of a message. You
would probably want them to be the first characters in a new file,
rather than the last characters in the preceding file.
***[clip]***
EXAMPLE:
CHOP cserv.thd -h -n#: -w -t
chops cserv.thd into many files--one for each occurrence of the "#:"
string.
***[clip]***
FOR %1 in (*.TXT) DO CHOP %1 -p4
This example illustrates how to use the batch FOR command to CHOP a
series of files as specified by the wildcard (*.TXT). In this case,
each .TXT file will be chopped into four pieces of approximately equal
size.
---
Yours sincerely,
Torben Joergensen, Oestermarie, Denmark.
Computing power does not derive from the machine, but HOW you use it!
To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html