BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / tail.0
TAIL(1) UNIX Programmer's Manual TAIL(1)
N\bNA\bAM\bME\bE
tail - deliver the last part of a file
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
t\bta\bai\bil\bl [+\b+-\b-]n\bnu\bum\bmb\bbe\ber\br[l\blb\bbc\bc][r\brf\bf] [f\bfi\bil\ble\be]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bT_\ba_\bi_\bl copies the named file to the standard output beginning
at a designated place. If no file is named, the standard
input is used.
Copying begins at distance +_\bn_\bu_\bm_\bb_\be_\br from the beginning, or
-_\bn_\bu_\bm_\bb_\be_\br from the end of the input. _\bN_\bu_\bm_\bb_\be_\br is counted in
units of lines, blocks or characters, according to the
appended option l\bl,\b, b\bb or c\bc.\b. When no units are specified,
counting is by lines.
Specifying r\br causes tail to print lines from the end of the
file in reverse order. The default for r\br is to print the
entire file this way. Specifying f\bf causes _\bt_\ba_\bi_\bl to not quit
at end of file, but rather wait and try to read repeatedly
in hopes that the file will grow.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
dd(1)
B\bBU\bUG\bGS\bS
Tails relative to the end of the file are treasured up in a
buffer, and thus are limited in length.
Various kinds of anomalous behavior may happen with charac-
ter special files.
Printed 7/9/88 September 29, 1987 1