MPE/iX Shell and Utilities Reference Manual, Vol 2

tail(1) MPE/iX Shell and Utilities tail(1)
NAME
tail — display last lines of file
SYNOPSIS
tail [–f][–bcklmn [±]number][file]
tail [–f][±number[bcklmn]] [file]
DESCRIPTION
Calling tail without options displays the last 10 lines of file This is useful for seeing the
most recent entries in log files and any file where new information is added on the end.
Options
tail accepts the following options:
+number
skips to line number, then displays the rest of the file. For example, +100 prints
from line 100 to the end of the file.
number
prints number lines from the end of the file. For example, -20 prints the last 20 lines
in the file. You can precede or follow both +number and number with one of these
letters to indicate the unit to be used:
b blocks
c characters
k kilobytes
l,n lines
m megabytes
The default unit is lines.
–f monitors a file as it grows. At the end of the file, tail wakes up every two seconds
and prints any new data at the end of the file. This flag is ignored if reading from the
standard input and standard input is a pipe.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 An error occurred.
1-588 Commands and Utilities