-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtail.tex
35 lines (25 loc) · 1.06 KB
/
tail.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\hrule
\vspace{1mm}
\addcontentsline{toc}{subsection}{tail}
\headerline{\large tail\index{tail}}{\emph{print the end of the file}}{}
\hrule
\vspace{4mm}
\paragraph{Description}
\indentpar \raggedright \textrm{By default, prints out the last ten lines of each file given.}\\
\paragraph{Usage}
\indentpar tail \textit{[options] file [file2...]}
\paragraph{Arguments}
\indentpar \argumentline{file}{the file to print the bottom of (may be piped)}\\
\indentpar \argumentline{file2...}{additional files (optional)}
\paragraph{Output}
\indentpar \textrm{Prints the last then lines of the file to standard output.}
\paragraph{Useful options}
\indentpar \optionline{-f}{continually update the end of the file}
\indentpar \optionline{-n \textit{\#}}{print the last \# lines}\\
\indentpar \optionline{-n +\#}{print the file from line \# to the end}\\
\indentpar \optionline{-q}{ omit headers if there are multiple files}\\
\indentpar \optionline{-r}{print the lines in reverse}\\
\paragraph{Examples}
\indentpar tail file.txt\\
\indentpar tail -qn +50 file.txt file2.txt
\vspace{20mm}