Dec 242017
 
SuperBreaker v3.1B split files to small files by size, by matching string, or by line count.
File SBREAK31.ZIP from The Programmer’s Corner in
Category File Managers
SuperBreaker v3.1B split files to small files by size, by matching string, or by line count.
File Name File Size Zip Size Zip Type
SBREAK.DOC 12124 3427 deflated
SBREAK.EXE 56603 28660 deflated

Download File SBREAK31.ZIP Here

Contents of the SBREAK.DOC file


TITLE: Superbreaker (SBREAK.EXE) ver 3.1B
PURPOSE: Split large files into smaller files every which way
DATE: 6-01-88
AUTHOR: Thomas A. Lundin
16267 Hudson Avenue
Lakeville, MN 55044
daytime # (612) 588-7571

DESCRIPTION: SBREAK splits large files into smaller files through a variety
of options: by size, by match string, or by line count. Files
can be split onto floppy diskettes, or onto any other drive.
Binary files can be split (useful for breaking up ARC files
onto multiple floppies) and recombined using the DOS COPY
command. Files can be split at every Nth occurrence of a break
string, or can be split to a certain size up to the next
occurrence of a break string. This program splits files just
about any way you need them.

Version 3.1 adds the ability to automatically answer program
prompts in the command line, allowing fully-unattended batch
operation (except to change disks).

Version 3.1A corrects a bug in breaking by match string where
the first split file contained two occurrences of the match
when only one was asked for.

OPERATION: The command line invocation is:

sbreak d:\path\filespec [/ans=a,b,c,...]
-or-
sbreak @dirlist [/ans=a,b,c,...]

1. "dirlist" is the name of a directory list file, i.e., a
file that has been created from a redirected DIR command.
For example, the DOS command

dir *.txt >dirfile

will create a disk file named "dirfile" which contains a
directory of all files with a ".TXT" extension.

2. "/ans=a,b,c,..." runs the program in auto-answer mode.
Each argument to the "/ans=" command represents a response
to a program prompt. Answers to program prompts are
separated by commas; a comma by itself indicates an
unspecified default answer. Since the arguments to an
auto-answer command are exactly the responses you would
give the program in manual mode, the easiest way to
construct an auto-answer command is to first run the
program in manual mode and record the responses you give
to the program. During execution, the program will display
all prompts and the automatic answers. Auto-answer mode
samples are provided below for each example.

CTRL-C will cancel the program at any time, even in the
middle of a break operation.


I. BREAKING TO SIZE
Options:
1. file size
2. break to nearest string
a. define string to break at
b. break files before string, after string, or
remove string from split files
3. direct output files to different drive
4. pause after each broken file

Pausing after each file break is mandatory if you are directing
output files to floppy, to allow you to change disks.

Break-by-size Example 1:

Break to Size, Match, or Line count (S/M/L) ? s
How large should each file be (in bytes) ? 362496
Do you need to break at a line or string (Y/N) ? n
File breaks to which drive (default=ONE YOU ARE ON NOW): a
Do you wish to pause after each file break (default=N)? y

Insert new disk in drive A:
Press any key to continue.
--> A:file.001
etc.

Auto-answer mode command: /ans=s,362496,n,a,y

Break-by-size Example 2:

Break to Size, Match, or Line count (S/M/L) ? s
How large should each file be (in bytes) ? 55000
Do you need to break at a line or string (Y/N) ? y
Break string (use \xx for hex code, e.g. CRLF is \0d\0a):
\0d\0a
(1) New files START with matching occurrence
(2) Old files END with matching occurrence
(3) Break files and THROW AWAY matching occurrence
Choose: 2
File breaks to which drive (default=ONE YOU ARE ON NOW):
Do you wish to pause after each file break (default=N)?
--> file.001
--> file.002
etc.

Auto-answer mode command: /ans=s,55000,y,\0d\0a,2,,

Binary files (ARCs, EXEs, etc.) must be broken purely by file
size, and no other method. They can be split onto floppies and
then reconstructed on a different hard disk.
----------------------------------------------------------------
TO RECONSTRUCT A SPLIT BINARY FILE, use the DOS COPY
command in the following manner:
----------------------------------------------------------------
A. Put the first split floppy in drive A:.
B. Direct to whichever subdirectory you wish the reconstructed
file to reside in.
C. type C>copy a:file.001/b myfile.arc (the SLASH-B means
BINARY COPY and the filenames you actually use will vary)
D. Put the next split floppy in drive A:.
E. type C>copy myfile.arc/b + a:file.002 (the PLUS sign
means APPEND)
F. Repeat steps D and E for each subsequent floppy. Just change
the appended file number from .002 to .003 and so on. Your
final reconstructed file will be named MYFILE.ARC, and it
will be as large as all the floppies put together.
----------------------------------------------------------------
II. BREAKING TO MATCH STRING
Options:
1. define string to break at
2. break files before string, after string, or remove
string from split files
3. define how many times break string will be found before
file is split
4. direct output files to different drive
5. pause after each broken file

Break-to-match Example 1:

Break to Size, Match, or Line count (S/M/L) ? m
Break string (use \xx for hex code, e.g. CRLF is \0d\0a):

(1) New files START with matching occurrence
(2) Old files END with matching occurrence
(3) Break files and THROW AWAY matching occurrence
Choose: 1
How many occurrences of string before break (default = 1): 15
File breaks to which drive (default=ONE YOU ARE ON NOW):
Do you wish to pause after each file break (default=N)?
--> bigfile.001
--> bigfile.002
etc.

Auto-answer mode command: /ans=m,\3cHEADING\3e,1,15,,

A break-to-match that THROWS AWAY the break string before
breaking the file will throw away EVERY occurrence of the
break string found in the file, NOT JUST the occurrence at the
file break. Consider this side effect before choosing this
option.
----------------------------------------------------------------
III. BREAKING TO LINE COUNT
Options:
1. fixed or variable line lengths
a. record size if fixed-length
2. number of lines (records) per split file
a. add CRLF to fixed-length records
b. verification of file size on fixed-length records
3. strip the 8th bit from incoming characters
4. direct output files to different drive
5. pause after each broken file

Variable lines are assumed to be terminated by a carriage
return with optional line feed. Fixed-length lines are assumed
to have no record terminator characters. A CRLF can be
optionally added to each fixed-length record on output.

Break-to-count Example 1:

Break to Size, Match, or Line count (S/M/L) ? l
Are line lengths Fixed or Variable (F/V) ? v
How many lines per file? 2000
Convert 8-bit ASCII to 7-bit ASCII (Y/N) ? n
File breaks to which drive (default=ONE YOU ARE ON NOW):
Do you wish to pause after each file break (default=N)?
--> file.001
etc.

Auto-answer mode command: /ans=l,v,2000,n,,

Break-to-count Example 2:

Break to Size, Match, or Line count (S/M/L) ? l
Are line lengths Fixed or Variable (F/V) ? f
What is the record length? 128
Convert 8-bit ASCII to 7-bit ASCII (Y/N) ? n
How many records per file? 2000
Do you want a CR/LF after each record (Y/N) ? y
Each file will be 260000 characters large. Is this OK (Y/N) ? y
File breaks to which drive (default=ONE YOU ARE ON NOW):
Do you wish to pause after each file break (default=N)?
--> file.001
etc.

Auto-answer mode command: /ans=l,f,128,n,2000,y,y,,

NOTES: The program must reside in any subdirectory listed in a PATH.
SBREAK.EXE reads itself for certain runtime parameters, and it
uses the PATH list to find itself.

MACHINE: The program will run on any MS-DOS compatible computer using
MS-DOS 2.x or higher, with a minimum of 128K RAM.

DISCLAIMER: This program is distributed as user-supported software. Use
it, copy it, give it to your friends. No warranties, either
expressed or implied, are given by the author or distributor of
the program, and the user accepts all risk of damage arising
out of the application and use of the program.

BEG: If you find this program to be of value, contributions in any
amount ($10 suggested) will be gratefully accepted. Please make
checks payable to Thomas Lundin.

Send comments/bug reports/contributions to:


THOMAS A. LUNDIN
16267 Hudson Avenue
Lakeville, MN 55044
Daytime # (612) 588-7571


You can also reach me at my BBS home base:

PC-ROCKLAND BBS
If you can't find a program here,
it probably doesn't exist!
(914) 353-2538
(Leave msg. for "Tom Lundin")

Thank you for using SBREAK.



 December 24, 2017  Add comments

Leave a Reply