home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / ENTERPRS / CPM / UTILS / S / SPLIT13.LBR / SPLIT.DZC / SPLIT.DOÃ
Text File  |  2000-06-30  |  2KB  |  50 lines

  1.                                    FILE SPLITTER
  2.                                   By Guy Cousineau
  3.  
  4. I have seen several utilities for splitting files; while they all work, they 
  5. usually create file segments of greatly varying sizes.  200 lines of text, 
  6. for example can yield a 12K file, whereas 200 lines of source code could be 
  7. as small as 3K.  What I propose here is simplicity itself:
  8.  
  9. Split reads in the source file 16K at a time and looks at the end of a 
  10. segment for a <LF>.  The file is cut off at that point and written to the 
  11. first segment, then another 16K is read in.  The process continues until the 
  12. entire file is copied creating several 16K segments which all terminate at 
  13. the end of a line.
  14.  
  15. SPLIT is designed only to split large UNSQUEEZED or UNCRUNCHED files.  It 
  16. should not be used to split other file types such as .COM .REL, etc.  The 
  17. program does not care what file name you supply, it just does its job.
  18.  
  19.                     SYNTAX
  20.                 SPLIT [d:]ufn [d:]nn [/N]
  21.  
  22. Where the drive code is optional and only a drive code is accepted for the 
  23. destination file(s); SPLIT uses the same file name and replaces the extents 
  24. with numbers.  eg
  25.  
  26.     LONG.DOC is split to LONG.D01, LONG.D02, etc.
  27.  
  28. The /n option requests that no disk swap is made between read and write 
  29. operations.  Note that this feature is ignored when source and destination 
  30. are different.  Thus to quickly split LONG.DOC from drive A to drive A you 
  31. type:
  32.  
  33.         A>SPLIT LONG.DOC /n<CR>
  34.  
  35. The default split size is 16K.  You can specify a different size from 10 to 
  36. 32K with the following:
  37.  
  38.         A>SPLIT LONG.DOC 20 /N<CR>
  39.         A>SPLIT LONG.DOC B:32<CR>
  40.         A>SPLIT LONG.DOC 10<CR>
  41.  
  42. The splitting process is very fast; just marginally longer that a COPY 
  43. operation.  Enjoy!  send comments or suggestions to
  44.  
  45.         Guy Cousineau
  46.         1059 Hindley Street
  47.         OTTAWA Canada
  48.         K2B 5L9
  49.  
  50.