home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / man / manpages.zoo / split.1 < prev    next >
Encoding:
Text File  |  1991-11-11  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SPLIT(1L)                                               SPLIT(1L)
  5.  
  6.  
  7.  
  8. NAME
  9.      split - split a file into pieces
  10.  
  11. SYNOPSIS
  12.      split [-lines] [-l lines] [-b bytes[bkm]] [-C bytes[bkm]]
  13.      [+lines=lines] [+bytes=bytes[bkm]] [+line-bytes=bytes[bkm]]
  14.      [infile [outfile-prefix]]
  15.  
  16. DESCRIPTION
  17.      This manual page documents the GNU version of split.  split
  18.      creates one or more output files (as many as necessary) con-
  19.      taining consecutive sections of the _✓i_✓n_✓f_✓i_✓l_✓e, or the standard
  20.      input if none is given or the name `-' is given.  By
  21.      default, split puts 1000 lines of the input file, or what-
  22.      ever is left if it is less than that, into each output file.
  23.  
  24.      The output file names consist of a prefix followed by a
  25.      group of letters, chosen so that concatenating the output
  26.      files in sorted order by file name produces the original
  27.      input file, in order.  The default output file name prefix
  28.      is `x'.  If the _✓o_✓u_✓t_✓f_✓i_✓l_✓e-_✓p_✓r_✓e_✓f_✓i_✓x argument is given, it is used
  29.      as the output file name prefix instead.
  30.  
  31.      OPTIONS
  32.  
  33.      -_✓l_✓i_✓n_✓e_✓s, -_✓l _✓l_✓i_✓n_✓e_✓s, +_✓l_✓i_✓n_✓e_✓s=_✓l_✓i_✓n_✓e_✓s
  34.           Put _✓l_✓i_✓n_✓e_✓s lines of the input file into each output
  35.           file.
  36.  
  37.      -_✓b _✓b_✓y_✓t_✓e_✓s[_✓b_✓k_✓m], +_✓b_✓y_✓t_✓e_✓s=_✓b_✓y_✓t_✓e_✓s[_✓b_✓k_✓m]
  38.           Put _✓b_✓y_✓t_✓e_✓s bytes of the input file into each output
  39.           file.  _✓b_✓y_✓t_✓e_✓s is a nonzero integer, optionally followed
  40.           by one of the following characters to specify a dif-
  41.           ferent unit.
  42.  
  43.           b    512-byte blocks.
  44.  
  45.           k    1-kilobyte blocks.
  46.  
  47.           m    1-megabyte blocks.
  48.  
  49.      -_✓C _✓b_✓y_✓t_✓e_✓s[_✓b_✓k_✓m], +_✓l_✓i_✓n_✓e-_✓b_✓y_✓t_✓e_✓s=_✓b_✓y_✓t_✓e_✓s[_✓b_✓k_✓m]
  50.           Put into each output file as many complete lines of the
  51.           input file as is possible without exceeding _✓b_✓y_✓t_✓e_✓s
  52.           bytes.  If a line that is longer than _✓b_✓y_✓t_✓e_✓s bytes
  53.           occurs, put _✓b_✓y_✓t_✓e_✓s bytes of it into each output file
  54.           until less than _✓b_✓y_✓t_✓e_✓s bytes of the line are left, then
  55.           continue normally.  _✓b_✓y_✓t_✓e_✓s has the same format as for
  56.           the +_✓b_✓y_✓t_✓e_✓s option.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Page 1
  64.  
  65.  
  66.  
  67.