1 | <sect2>
|
---|
2 | <title>Contents</title>
|
---|
3 |
|
---|
4 | <para>The Textutils package contains the cat, cksum, comm, csplit, cut, expand,
|
---|
5 | fmt, fold, head, join, md5sum, nl, od, paste, pr, ptx, sort, split, sum,
|
---|
6 | tac, tail, tr, tsort, unexpand, uniq and wc programs.</para>
|
---|
7 |
|
---|
8 | </sect2>
|
---|
9 |
|
---|
10 | <sect2>
|
---|
11 | <title>Description</title>
|
---|
12 |
|
---|
13 | <sect3>
|
---|
14 | <title>cat</title>
|
---|
15 |
|
---|
16 | <para>cat concatenates file(s) or standard input to standard output.</para>
|
---|
17 |
|
---|
18 | </sect3>
|
---|
19 |
|
---|
20 | <sect3>
|
---|
21 | <title>cksum</title>
|
---|
22 |
|
---|
23 | <para>cksum prints CRC checksum and byte counts of each specified file.</para>
|
---|
24 |
|
---|
25 | </sect3>
|
---|
26 |
|
---|
27 | <sect3>
|
---|
28 | <title>comm</title>
|
---|
29 |
|
---|
30 | <para>comm compares two sorted files line by line.</para>
|
---|
31 |
|
---|
32 | </sect3>
|
---|
33 |
|
---|
34 | <sect3>
|
---|
35 | <title>csplit</title>
|
---|
36 |
|
---|
37 | <para>csplit outputs pieces of a file separated by (a) pattern(s) to files
|
---|
38 | xx01, xx02, ..., and outputs byte counts of each piece to standard
|
---|
39 | output.</para>
|
---|
40 |
|
---|
41 | </sect3>
|
---|
42 |
|
---|
43 | <sect3>
|
---|
44 | <title>cut</title>
|
---|
45 |
|
---|
46 | <para>cut prints selected parts of lines from specified files to standard
|
---|
47 | output.</para>
|
---|
48 |
|
---|
49 | </sect3>
|
---|
50 |
|
---|
51 | <sect3>
|
---|
52 | <title>expand</title>
|
---|
53 |
|
---|
54 | <para>expand converts tabs in files to spaces, writing to standard
|
---|
55 | output.</para>
|
---|
56 |
|
---|
57 | </sect3>
|
---|
58 |
|
---|
59 | <sect3>
|
---|
60 | <title>fmt</title>
|
---|
61 |
|
---|
62 | <para>fmt reformats each paragraph in the specified file(s), writing to
|
---|
63 | standard output.</para>
|
---|
64 |
|
---|
65 | </sect3>
|
---|
66 |
|
---|
67 | <sect3>
|
---|
68 | <title>fold</title>
|
---|
69 |
|
---|
70 | <para>fold wraps input lines in each specified file (standard input by default),
|
---|
71 | writing to standard output.</para>
|
---|
72 |
|
---|
73 | </sect3>
|
---|
74 |
|
---|
75 | <sect3>
|
---|
76 | <title>head</title>
|
---|
77 |
|
---|
78 | <para>Print first xx (10 by default) lines of each specified file to standard
|
---|
79 | output.</para>
|
---|
80 |
|
---|
81 | </sect3>
|
---|
82 |
|
---|
83 | <sect3>
|
---|
84 | <title>join</title>
|
---|
85 |
|
---|
86 | <para>join joins lines of two files on a common field.</para>
|
---|
87 |
|
---|
88 | </sect3>
|
---|
89 |
|
---|
90 | <sect3>
|
---|
91 | <title>md5sum</title>
|
---|
92 |
|
---|
93 | <para>md5sum prints or checks MD5 checksums.</para>
|
---|
94 |
|
---|
95 | </sect3>
|
---|
96 |
|
---|
97 | <sect3>
|
---|
98 | <title>nl</title>
|
---|
99 |
|
---|
100 | <para>nl writes each specified file to standard output, with line numbers
|
---|
101 | added.</para>
|
---|
102 |
|
---|
103 | </sect3>
|
---|
104 |
|
---|
105 | <sect3>
|
---|
106 | <title>od</title>
|
---|
107 |
|
---|
108 | <para>od writes an unambiguous representation, octal bytes by default, of a
|
---|
109 | specified file to standard output.</para>
|
---|
110 |
|
---|
111 | </sect3>
|
---|
112 |
|
---|
113 | <sect3>
|
---|
114 | <title>paste</title>
|
---|
115 |
|
---|
116 | <para>paste writes lines consisting of the sequentially corresponding
|
---|
117 | lines from each specified file, separated by TABs, to standard output.</para>
|
---|
118 |
|
---|
119 | </sect3>
|
---|
120 |
|
---|
121 | <sect3>
|
---|
122 | <title>pr</title>
|
---|
123 |
|
---|
124 | <para>pr paginates or columnates files for printing.</para>
|
---|
125 |
|
---|
126 | </sect3>
|
---|
127 |
|
---|
128 | <sect3>
|
---|
129 | <title>ptx</title>
|
---|
130 |
|
---|
131 | <para>ptx produces a permuted index of file contents.</para>
|
---|
132 |
|
---|
133 | </sect3>
|
---|
134 |
|
---|
135 | <sect3>
|
---|
136 | <title>sort</title>
|
---|
137 |
|
---|
138 | <para>sort writes sorted concatenation of files to standard output.</para>
|
---|
139 |
|
---|
140 | </sect3>
|
---|
141 |
|
---|
142 | <sect3>
|
---|
143 | <title>split</title>
|
---|
144 |
|
---|
145 | <para>split outputs fixed-size pieces of an input file to
|
---|
146 | PREFIXaa, PREFIXab, ...</para>
|
---|
147 |
|
---|
148 | </sect3>
|
---|
149 |
|
---|
150 | <sect3>
|
---|
151 | <title>sum</title>
|
---|
152 |
|
---|
153 | <para>sum prints checksum and block counts for each specified file.</para>
|
---|
154 |
|
---|
155 | </sect3>
|
---|
156 |
|
---|
157 | <sect3>
|
---|
158 | <title>tac</title>
|
---|
159 |
|
---|
160 | <para>tac writes each specified file to standard output, last line first.</para>
|
---|
161 |
|
---|
162 | </sect3>
|
---|
163 |
|
---|
164 | <sect3>
|
---|
165 | <title>tail</title>
|
---|
166 |
|
---|
167 | <para>tail print the last xx (10 by default) lines of each specified file to
|
---|
168 | standard output.</para>
|
---|
169 |
|
---|
170 | </sect3>
|
---|
171 |
|
---|
172 | <sect3>
|
---|
173 | <title>tr</title>
|
---|
174 |
|
---|
175 | <para>tr translates, squeezes, and/or deletes characters from standard
|
---|
176 | input, writing to standard output.</para>
|
---|
177 |
|
---|
178 | </sect3>
|
---|
179 |
|
---|
180 | <sect3>
|
---|
181 | <title>tsort</title>
|
---|
182 |
|
---|
183 | <para>tsort writes totally ordered lists consistent with the partial ordering
|
---|
184 | in specified files.</para>
|
---|
185 |
|
---|
186 | </sect3>
|
---|
187 |
|
---|
188 | <sect3>
|
---|
189 | <title>unexpand</title>
|
---|
190 |
|
---|
191 | <para>unexpand converts spaces in each file to tabs, writing to standard
|
---|
192 | output.</para>
|
---|
193 |
|
---|
194 | </sect3>
|
---|
195 |
|
---|
196 | <sect3>
|
---|
197 | <title>uniq</title>
|
---|
198 |
|
---|
199 | <para>Uniq removes duplicate lines from a sorted file.</para>
|
---|
200 |
|
---|
201 | </sect3>
|
---|
202 |
|
---|
203 | <sect3>
|
---|
204 | <title>wc</title>
|
---|
205 |
|
---|
206 | <para>wc prints line, word, and byte counts for each specified file, and a
|
---|
207 | total line if more than one file is specified.</para>
|
---|
208 |
|
---|
209 | </sect3>
|
---|
210 |
|
---|
211 | </sect2>
|
---|
212 |
|
---|