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 / tail.1 < prev    next >
Encoding:
Text File  |  1991-11-11  |  2.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4. TAIL(1L)                                                 TAIL(1L)
  5.  
  6.  
  7.  
  8. NAME
  9.      tail - output the last part of files
  10.  
  11. SYNOPSIS
  12.      tail [-c [+]N[bkm]] [-n [+]N] [-fqv] [+bytes=[+]N[bkm]]
  13.      [+lines=[+]N] [+follow] [+quiet] [+silent] [+verbose]
  14.      [file...]
  15.  
  16.      tail [{-,+}Nbcfklmqv] [file...]
  17.  
  18. DESCRIPTION
  19.      This manual page documents the GNU version of tail.  tail
  20.      prints the last part (10 lines by default) of each given
  21.      file; it reads from standard input if no files are given or
  22.      when a filename of `-' is encountered.  If more than one
  23.      file is given, it prints a header consisting of the file's
  24.      name enclosed in `==>' and `<==' before the output for each
  25.      file.
  26.  
  27.      The GNU tail can output any amount of data, unlike the Unix
  28.      version, which uses a fixed size buffer.  It has no -_✓r
  29.      option (print in reverse).  Reversing a file is really a
  30.      different job from printing the end of a file; the BSD tail
  31.      can only reverse files that are at most as large as its
  32.      buffer, which is typically 32k.  A reliable and more versa-
  33.      tile way to reverse files is the GNU tac command.
  34.  
  35.      OPTIONS
  36.  
  37.      tail accepts two option formats: the new one, in which
  38.      numbers are arguments to the option letters, and the old
  39.      one, in which a `+' or `-' and optional number precede any
  40.      option letters.
  41.  
  42.      If a number (`N') starts with a `+', tail begins printing
  43.      with the Nth item from the start of each file, instead of
  44.      from the end.
  45.  
  46.      -_✓c _✓N, +_✓b_✓y_✓t_✓e_✓s _✓N
  47.           Tail by N bytes.  N is a nonzero integer, optionally
  48.           followed by one of the following characters to specify
  49.           a different unit.
  50.  
  51.           b    512-byte blocks.
  52.  
  53.           k    1-kilobyte blocks.
  54.  
  55.           m    1-megabyte blocks.
  56.  
  57.      -_✓f, +_✓f_✓o_✓l_✓l_✓o_✓w
  58.           Loop forever trying to read more characters at the end
  59.           of the file, on the assumption that the file is
  60.  
  61.  
  62.  
  63. Page 1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TAIL(1L)                                                 TAIL(1L)
  71.  
  72.  
  73.  
  74.           growing.  Ignored if reading from a pipe.  Cannot be
  75.           used if more than one file is given.
  76.  
  77.      -_✓l, -_✓n _✓N, +_✓l_✓i_✓n_✓e_✓s _✓N
  78.           Tail by N lines.
  79.  
  80.      -_✓q, +_✓q_✓u_✓i_✓e_✓t, +_✓s_✓i_✓l_✓e_✓n_✓t
  81.           Never print filename headers.
  82.  
  83.      -_✓v, +_✓v_✓e_✓r_✓b_✓o_✓s_✓e
  84.           Always print filename headers.
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Page 2
  130.  
  131.  
  132.  
  133.