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