Files
oldlinux-files/Minix/2.0.0/wwwman/man1/tail.1.html
2024-02-19 00:21:39 -05:00

74 lines
1.6 KiB
HTML

<HTML>
<HEAD>
<TITLE>tail(1)</TITLE>
</HEAD>
<BODY>
<H1>tail(1)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
tail - print the last few lines of a file
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>tail</STRONG> [<STRONG>-c</STRONG> <EM>n</EM>] [<STRONG>-f]</STRONG> <STRONG>[-n</STRONG> <EM>n</EM>] [<EM>file</EM>] ...
</PRE>
<H2>OPTIONS</H2><PRE>
<STRONG>-c</STRONG> The count refers to characters
<STRONG>-f</STRONG> On FIFO or special file, keep reading after EOF
<STRONG>-n</STRONG> The count refers to lines
</PRE>
<H2>EXAMPLES</H2><PRE>
<STRONG>tail</STRONG> <STRONG>-n</STRONG> <STRONG>6</STRONG> # Print last 6 lines of <EM>stdin</EM>
<STRONG>tail</STRONG> <STRONG>-c</STRONG> <STRONG>20</STRONG> <STRONG>file</STRONG> # Print the last 20 characters of <EM>file</EM>
<STRONG>tail</STRONG> <STRONG>-n</STRONG> <STRONG>1</STRONG> <STRONG>file1</STRONG> <STRONG>file2</STRONG>
# Print last line of two files
<STRONG>tail</STRONG> <STRONG>-n</STRONG> <STRONG>+8</STRONG> <STRONG>file</STRONG> # Print the tail starting with line 8
</PRE>
<H2>DESCRIPTION</H2><PRE>
The last few lines of one or more files are printed. The default count
is 10 lines. The default file is <EM>stdin</EM>. If the value of <EM>n</EM> for the <STRONG>-c</STRONG> or
<STRONG>-n</STRONG> flags starts with a + sign, counting starts at the beginning, rather
than the end of the file.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man1/head.1.html">head(1)</A></STRONG>.
</PRE>
</BODY>
</HTML>