home *** CD-ROM | disk | FTP | other *** search
- CUTIt 2.0
-
- By: George Spafford
-
- September 2, 1991
-
- Purpose:
-
- To convert streamed length record formats to fixed length
- record formats by having the user specify the desired fixed
- length and then cutting that length sequentially out of the
- input record.
-
- Procedure:
-
- With Version 2.0, users have a much wider range of options available
- to them on the command line. CUT can be invoked as follows:
-
- CUT /S:source /T:target /L:nnn /D /N /R
-
- /S:source "source" is the source file
-
- /T:target "target" is the destination file
- You can bypass this if you specify the /R switch.
-
- If /S: and /T: have the same file names, the /R replace
- option is assumed. See /R for further details.
-
- /L:nnn Here, the user can specify the record length. This is handy
- when the user needs a record length that is longer than any
- of the source records. "nnn" is the desired length of the
- output records in terms of bytes (characters).
-
- /L:nnn must be specified on the command line or the
- menu will appear and ask you which you want to do.
-
- /D This switch will cause the program to delete the source file
- once the destination file has been created (completely, in
- other words, for a while both files will exist on the disk).
-
- /N This switch will cause data records to be streamed to the
- disk. In other words, CR/LF record delimitters will be
- bypassed and the records will be written sequentially to the
- output file.
-
- /R This switch will instruct the program to replace the source
- data with the new data once the program has finished. What
- happens is that CUT writes a temporary file "CUT$$$.TMP" to
- the disk with all of the converted records, it then deletes
- the source file, copies the temporary file to the source file
- and it then deletes the temporary file.
-
- Examples:
-
- The next example modifies the source file with a user-defined length
- of 128 bytes. (Actually, it writes first to a temporary file and then
- it overwrites the source file with the temporary file).
-
- CUT /S:FIXED.TXT /R /L:128
-
- The next example will read FIXED.TXT in by 215 byte increments. It
- will then write to the output file and delete the source file.
-
- CUT /S:FIXED.TXT /T:FIXED.FIX /L:215 /D
-
- The program can still be invoked by typing only CUT and then answering the
- questions as to the filenames and how you wish to set the record lengths.
- However, the menus do not have the file manipulation options that the command
- line does. Note, you can mix command line options and menus.
-
- I hope this program helps you evaluate some of your problems
- or even makes some solutions/benefits clear. This program is SHAREWARE.
- IT IS NOT PUBLIC DOMAIN. If you find that this program aids you, you are
- required ethically and legally to register it after a 30 day evaluation period.
- This software is priced at $5 for each concurrently used copy in an
- organization.
-
- Sincerely,
-
- George Spafford
- 3001 LakeShore Drive, #329
- St. Joseph, MI 49085
-
- Data: (616) 468-5026 Queued Access BBS 19200-8-N-1
- FIDOnet: 1:227/250
-
- And now for the unpleasantries:
-
-
- CUTIT IS DISTRIBUTED AS IS. THE AUTHOR (GEORGE SPAFFORD)
- MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED,
- INCLUDING BUT NOT LIMITED TO TO WARRANTIES OF MERCHANTABILITY
- OR FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THIS
- SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL THE AUTHOR BE
- LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST SAVINGS,
- OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
- OF THE USE OF OR THE INABILITY TO USE THIS PROGRAM.
-