home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
util
/
mayflower.lha
/
MayFlower
/
CutFile
/
CutFile.doc
< prev
next >
Wrap
Text File
|
1994-05-04
|
7KB
|
176 lines
--- ---
CutFile 3.0 (19940305) (o) (o)
^
by Stephen D. Childers \_____/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Program Description:
1) Program is used to cut very large text files down to bytesize
editable chunks. This is useful when you have a system with very
little memory or an editor program that chokes on large files.
When you are finished with editing the cut pieces then use the
'Join' command to bring them back together again.
NOTE: Use a 'Join' command that will allow the joining of files
in alphabetical order when using wild characters.
2) Runs only from CLI. Can be made resident.
3) Program (when run from CLI) will interact with the 'c:Why' command
after program failures; this command may provide a more detailed
explanation of why the program failed.
The 'Why' command should be used immediately after a program
failure to extract the last program's result code, because
that result code is changed upon the execution of the next CLI
command.
4) Certain error reports will contain the name of the argument, file,
device, (etc) that is associated with failure when it occurs.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CLI usage:
1> CutFile [!] [in out size]
! = Show author info
in = Input file name.
out = Output file name.
size = Size of cut.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1) The program will automatically append an ascending serial number
to each output file cut.
The Program will look for an "Empty:" device in which to write all
the output cuts to. This device may be a logical assignment to
your favourite memory device or the name of a volume for a diskette
device. Once the logical device "Empty:" becomes full then a
System Request will notify you that "Empty:" needs attention, at
which point you may:
A) Copy all of the cuts within "Empty:" to another device,
and then delete all of the output cuts that are within
"Empty:".
B) Remove the volume "Empty:" diskette and replace it with
another "Empty:" volume that is empty.
Once "Empty:" is ready to receive more file cuts then press
"Continue".
2) Size number may be given in decimal or hex. Limits are 1 through
4294967295. Hex numbers must be preceded with the 'h' character.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CLI Example #1:
1> CutFile HD0:biggy tiny 50000
Let us say that the size of file "biggy" is 320000 bytes long. A list
of the output results would provide the following data:
Filename Size
-------------- ------
Empty:tiny.cut1 50000
...and so on... 50000
Empty:tiny.cut6 50000
Empty:tiny.cut7 20000
When program is finished with cutting the file then use a "Join"
command in the following manner:
> Join Empty:tiny.cut* as ElseWhere:Biggy2
or > Join Empty:tiny.cut#? as ElseWhere:Biggy2
CLI Example #2:
1> CutFile HD0:Biggest wee 30000
Let us say that the size of file "biggest" is 1270003 bytes long.
A list (sort) of the output results would provide the following data:
Filename Size
-------------- ------
Empty:wee.cut01 30000
...and so on... 30000
Empty:wee.cut09 30000
Empty:wee.cut10 30000
...and so on... 30000
Empty:wee.cut42 30000
Empty:wee.cut43 10003 (last file; the remainder bytes)
As you can see, a ZERO was placed in the correct location within
the file names. This proper placement of the ZERO will allow a
'Join' command to place the files in correct sequence when rejoining
them into one large file again.
The ZERO will be correctly placed within the filename regardless of
the number of cuts you require (ie 10, 100, 1000, etc ).
CLI Example #3:
This last example just ahead should get my point across. Perform the
following CLI command steps.
STEP 1 = > makedir ram:test
STEP 2 = > assign Empty: ram:test/
STEP 3 = > copy CutFile ram:test/CutFile
STEP 4 = > cd ram:test/
STEP 5 = > CutFile CutFile many 42
STEP 6 = > list many* sort
STEP 7 = > Join many#? as CutFileTwo
STEP 8 = > CutFileTwo !
Step 5 above will produce over 100 files.
Step 6 above will show that all the ZEROS are in their proper place
within the output file cuts.
Step 7 above will join all the separate cuts back together again into
a new program file called CutFileTwo.
Step 8 above will run the CutFileTwo program and perform what the
option tells it to do. Doing this will prove that all of the cuts
were rejoined in the proper sequence (alphabetical order).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Version History:
The following information briefly describes changes or improvements
made to each version, and they will be described in descending order;
meaning latest version information begins first:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Version 3.0 (19940305) -
1) Changed version numbering format. Program can now be used with the
"Version" command. Date within parenthesis is shown in a somewhat
international format as (yyyymmdd).
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Version 19930730 -
1) Optimized and refined source code thereby making program smaller.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Version 19920115 - The first version.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
/X_/\X_/\X_/\X_/\X_/\X_/\X_/\X___X/\_X/\_X/\_X/\_X/\_X/\_X/\_X\
// \\
// 3 The Lord shall cut off all flattering lips, and the \\
// tongue that speaketh proud things: \\
// 4 Who have said, With our tongue will we prevail; our \\
X lips are our own: who is lord over us? X
\\ //
\\ Our Lord's Holy Bible - Psalms 12:3-4 //
\\ (King James by the way) //
\\ _ _ _ _ _ _ _ ___ _ _ _ _ _ _ _ //
\X \/X \/X \/X \/X \/X \/X \/X X\/ X\/ X\/ X\/ X\/ X\/ X\/ X/
\_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
End Of Document