-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwc.tex
36 lines (27 loc) · 944 Bytes
/
wc.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
36
\hrule
\vspace{1mm}
\addcontentsline{toc}{subsection}{wc}
\headerline{\large wc\index{wc}%
\index{word count|see{wc}}%
\index{count|see{wc}}%
}{\emph{word count}}{}
\hrule
\vspace{4mm}
\paragraph{Description}
\indentpar \raggedright \textrm{Prints summary statistics for the given files.}\\
\paragraph{Usage}
\indentpar wc \textit{[options] file [file2...]}
\paragraph{Arguments}
\indentpar \argumentline{file}{the file to summarise}\\
\indentpar \argumentline{file2...}{additional files (optional)}
\paragraph{Output}
\indentpar \textrm{By default, prints the line, word, and character counts for the specified file(s).}
\paragraph{Useful options}
\indentpar \optionline{-c}{print byte count}\\
\indentpar \optionline{-l}{print line count}\\
\indentpar \optionline{-m}{print character count}\\
\indentpar \optionline{-w}{print word count}
\paragraph{Examples}
\indentpar wc file.txt\\
\indentpar wc -l file.txt file2.txt
\vspace{20mm}