[BACK]Return to tail.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / tail

Diff for /src/usr.bin/tail/tail.1 between version 1.9 and 1.10

version 1.9, 2000/03/11 21:40:04 version 1.10, 2000/10/07 14:32:15
Line 49 
Line 49 
 .Oo  .Oo
 .Fl b Ar number |  .Fl b Ar number |
 .Fl c Ar number |  .Fl c Ar number |
 .Fl n Ar number  .Fl n Ar number |
   .Fl Ns Ar number
 .Oc  .Oc
 .Op Ar file ...  .Op Ar file ...
 .Sh DESCRIPTION  .Sh DESCRIPTION
Line 59 
Line 60 
 .Ar file  .Ar file
 or, by default, its standard input, to the standard output.  or, by default, its standard input, to the standard output.
 .Pp  .Pp
 The display begins at a byte, line or 512-byte block location in the  The display begins at a byte, line, or 512-byte block location in the
 input.  input.
 Numbers having a leading plus  Numbers having a leading plus
 .Pq Ql +  .Pq Ql +
Line 87 
Line 88 
 The location is  The location is
 .Ar number  .Ar number
 bytes.  bytes.
   .It Xo Fl n Ar number No |\
   .Fl Ns Ar number
   .Xc
   The location is
   .Ar number
   lines.
 .It Fl f  .It Fl f
 The  Do not stop when end-of-file is reached, but rather to wait for additional
 .Fl f  
 option causes  
 .Nm  
 to not stop when end-of-file is reached, but rather to wait for additional  
 data to be appended to the input.  data to be appended to the input.
 If the file is replaced (i.e., the inode number changes),  If the file is replaced (i.e., the inode number changes),
 .Nm  .Nm
 will reopen the file and continue.  will reopen the file and continue.
 If the file is truncated,  If the file is truncated,
 .Nm  .Nm
 will reset its position back to the beginning.  will reset its position to the beginning.
 This makes  This makes
 .Nm  .Nm
 more useful for watching log files that may get rotated.  more useful for watching log files that may get rotated.
 The  The
 .Fl f  .Fl f
 option is ignored if the standard input is a pipe, but not if it is a FIFO.  option is ignored if the standard input is a pipe, but not if it is a FIFO.
 .It Fl n Ar number  
 The location is  
 .Ar number  
 lines.  
 .It Fl r  .It Fl r
 The  The
 .Fl r  .Fl r
 option causes the input to be displayed in reverse order, by line.  option causes the input to be displayed in reverse order, by line.
 Additionally, this option changes the meaning of the  Additionally, this option changes the meaning of the
 .Fl b ,  .Fl b ,
 .Fl c  .Fl c ,
 and  and
 .Fl n  .Fl n
 options.  options.
 When the  When the
 .Fl r  .Fl r
 option is specified, these options specify the number of bytes, lines  option is specified, these options specify the number of bytes, lines
 or 512-byte blocks to display, instead of the bytes, lines or blocks  or 512-byte blocks to display, instead of the bytes, lines, or blocks
 from the beginning or end of the input from which to begin the display.  from the beginning or end of the input from which to begin the display.
 The default for the  The default for the
 .Fl r  .Fl r
Line 140 
Line 139 
 The  The
 .Nm  .Nm
 utility exits 0 on success or >0 if an error occurred.  utility exits 0 on success or >0 if an error occurred.
   .Sh EXAMPLES
   To display the last 500 lines of the file
   .Ar foo :
   .Pp
   .Dl $ tail -500 foo
   .Pp
   Keep
   .Pa /var/log/messages
   open, displaying to the standard output anything appended to the file:
   .Pp
   .Dl $ tail -f /var/log/messages
 .Sh SEE ALSO  .Sh SEE ALSO
 .Xr cat 1 ,  .Xr cat 1 ,
 .Xr head 1 ,  .Xr head 1 ,

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10