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