📄 textutils.html
字号:
<HTML><HEAD><TITLE>Installing Textutils-2.0</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Preparing the LFS system"HREF="../chapter05/chapter05.html"><LINKREL="PREVIOUS"TITLE="Installing Texinfo-4.0"HREF="../chapter05/texinfo.html"><LINKREL="NEXT"TITLE="Creating passwd and group files"HREF="../chapter05/pwdgroup.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../chapter05/texinfo.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 5. Preparing the LFS system</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter05/pwdgroup.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch05-textutils">5.20. Installing Textutils-2.0</A></H1><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen">Estimated build time: 2 minutesEstimated required disk space: 24 MB</PRE></FONT></TD></TR></TABLE><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN1554">5.20.1. Installation of Textutils</A></H2><P>Install Textutils by running the following commands:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>./configure --prefix=$LFS/usr --disable-nls &&make LDFLAGS=-static &&make install &&mv $LFS/usr/bin/cat $LFS/bin</B></TT></PRE></FONT></TD></TR></TABLE></P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN1560">5.20.2. Contents</A></H2><P>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.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN1563">5.20.3. Description</A></H2><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1565">5.20.3.1. cat</A></H3><P>cat concatenates file(s) or standard input to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1568">5.20.3.2. cksum</A></H3><P>cksum prints CRC checksum and byte counts of each specifiedfile.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1571">5.20.3.3. comm</A></H3><P>comm compares two sorted files line by line.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1574">5.20.3.4. csplit</A></H3><P>csplit outputs pieces of a file separated by (a) pattern(s) to filesxx01, xx02, ..., and outputs byte counts of each piece to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1577">5.20.3.5. cut</A></H3><P>cut prints selected parts of lines from specified files to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1580">5.20.3.6. expand</A></H3><P>expand converts tabs in files to spaces, writing to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1583">5.20.3.7. fmt</A></H3><P>fmt reformats each paragraph in the specified file(s), writing to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1586">5.20.3.8. fold</A></H3><P>fold wraps input lines in each specified file (standard input by default),writing to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1589">5.20.3.9. head</A></H3><P>Print first xx (10 by default) lines of each specified file to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1592">5.20.3.10. join</A></H3><P>join joins lines of two files on a common field.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1595">5.20.3.11. md5sum</A></H3><P>md5sum prints or checks MD5 checksums.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1598">5.20.3.12. nl</A></H3><P>nl writes each specified file to standard output, with line numbersadded.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1601">5.20.3.13. od</A></H3><P>od writes an unambiguous representation, octal bytes by default, of aspecified file to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1604">5.20.3.14. paste</A></H3><P>paste writes lines consisting of the sequentially correspondinglines from each specified file, separated by TABs, to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1607">5.20.3.15. pr</A></H3><P>pr paginates or columnates files for printing.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1610">5.20.3.16. ptx</A></H3><P>ptx produces a permuted index of file contents.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1613">5.20.3.17. sort</A></H3><P>sort writes sorted concatenation of files to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1616">5.20.3.18. split</A></H3><P>split outputs fixed-size pieces of an input file to PREFIXaa, PREFIXab, ...</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1619">5.20.3.19. sum</A></H3><P>sum prints checksum and block counts for each specified file.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1622">5.20.3.20. tac</A></H3><P>tac writes each specified file to standard output, last linefirst.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1625">5.20.3.21. tail</A></H3><P>tail print the last xx (10 by default) lines of each specified file to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1628">5.20.3.22. tr</A></H3><P>tr translates, squeezes, and/or deletes characters from standardinput, writing to standard output.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1631">5.20.3.23. tsort</A></H3><P>tsort writes totally ordered lists consistent with the partial ordering in specified files.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1634">5.20.3.24. unexpand</A></H3><P>unexpand converts spaces in each file to tabs, writing to standardoutput.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1637">5.20.3.25. uniq</A></H3><P>Uniq removes duplicate lines from a sorted file.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1640">5.20.3.26. wc</A></H3><P>wc prints line, word, and byte counts for each specified file, and atotal line if more than one file is specified.</P></DIV></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN1643">5.20.4. Dependencies</A></H2><P>Textutils-2.0 needs the following to be installed:</P><PCLASS="literallayout"><br>sh from the bash package<br><br>ar from the binutils package<br>as from the binutils package<br>ld from the binutils package<br><br>cmp from the diffutils package<br><br>chmod from the fileutils package<br>cp from the fileutils package<br>ln from the fileutils package<br>ls from the fileutils package<br>mv from the fileutils package<br>rm from the fileutils package<br><br>cc from the gcc package<br><br>egrep from the grep package<br>grep from the grep package<br><br>make from the make package<br><br>sed from the sed package<br><br>basename from the sh-utils package<br>expr from the sh-utils package<br>sleep from the sh-utils package<br>uname from the sh-utils package<br><br>cat from the textutils package<br>tr from the textutils package<br></P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../chapter05/texinfo.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter05/pwdgroup.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Installing Texinfo-4.0</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter05/chapter05.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Creating passwd and group files</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -