5.19. Installing Textutils-2.0

Estimated build time:           2 minutes
Estimated required disk space:  24 MB

5.19.1. Installation of Textutils

Install Textutils by running the following commands:

./configure --prefix=$LFS/usr --disable-nls &&
make LDFLAGS=-static &&
make install &&
mv $LFS/usr/bin/cat $LFS/bin

5.19.2. Contents

The Textutils package contains the cat, cksum, comm, csplit, cut, expand, fmt, fold, head, join, md5sum, nl, od, paste, pr, ptx, sort, split, sum, tac, tail, tr, tsort, unexpand, uniq and wc programs.

5.19.3. Description

5.19.3.1. cat

cat concatenates file(s) or standard input to standard output.

5.19.3.2. cksum

cksum prints CRC checksum and byte counts of each specified file.

5.19.3.3. comm

comm compares two sorted files line by line.

5.19.3.4. csplit

csplit outputs pieces of a file separated by (a) pattern(s) to files xx01, xx02, ..., and outputs byte counts of each piece to standard output.

5.19.3.5. cut

cut prints selected parts of lines from specified files to standard output.

5.19.3.6. expand

expand converts tabs in files to spaces, writing to standard output.

5.19.3.7. fmt

fmt reformats each paragraph in the specified file(s), writing to standard output.

5.19.3.8. fold

fold wraps input lines in each specified file (standard input by default), writing to standard output.

5.19.3.9. head

Print first xx (10 by default) lines of each specified file to standard output.

5.19.3.10. join

join joins lines of two files on a common field.

5.19.3.11. md5sum

md5sum prints or checks MD5 checksums.

5.19.3.12. nl

nl writes each specified file to standard output, with line numbers added.

5.19.3.13. od

od writes an unambiguous representation, octal bytes by default, of a specified file to standard output.

5.19.3.14. paste

paste writes lines consisting of the sequentially corresponding lines from each specified file, separated by TABs, to standard output.

5.19.3.15. pr

pr paginates or columnates files for printing.

5.19.3.16. ptx

ptx produces a permuted index of file contents.

5.19.3.17. sort

sort writes sorted concatenation of files to standard output.

5.19.3.18. split

split outputs fixed-size pieces of an input file to PREFIXaa, PREFIXab, ...

5.19.3.19. sum

sum prints checksum and block counts for each specified file.

5.19.3.20. tac

tac writes each specified file to standard output, last line first.

5.19.3.21. tail

tail print the last xx (10 by default) lines of each specified file to standard output.

5.19.3.22. tr

tr translates, squeezes, and/or deletes characters from standard input, writing to standard output.

5.19.3.23. tsort

tsort writes totally ordered lists consistent with the partial ordering in specified files.

5.19.3.24. unexpand

unexpand converts spaces in each file to tabs, writing to standard output.

5.19.3.25. uniq

Uniq removes duplicate lines from a sorted file.

5.19.3.26. wc

wc prints line, word, and byte counts for each specified file, and a total line if more than one file is specified.

5.19.4. Dependencies

Textutils-2.0 needs the following to be installed:


sh from the bash package

ar from the binutils package
as from the binutils package
ld from the binutils package

cmp from the diffutils package

chmod from the fileutils package
cp from the fileutils package
ln from the fileutils package
ls from the fileutils package
mv from the fileutils package
rm from the fileutils package

cc from the gcc package

egrep from the grep package
grep from the grep package

make from the make package

sed from the sed package

basename from the sh-utils package
expr from the sh-utils package
sleep from the sh-utils package
uname from the sh-utils package

cat from the textutils package
tr from the textutils package