⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch52_04.htm

📁 the unix power tools
💻 HTM
📖 第 1 页 / 共 5 页
字号:
><ACLASS="indexterm"NAME="AUTOID-61396"></A>The <EMCLASS="emphasis">findtext</EM> shell script prints the names of specifiedfiles that are text files (i.e., human-readable).  Article<ACLASS="xref"HREF="ch16_26.htm"TITLE="Finding Text Files with findtext ">16.26</A>.</P></DD><DTCLASS="term">flip *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61404"></A><EMCLASS="emphasis">flip</EM> is a Perl scriptthat reverses the text in a given file line-by-line.That is,the first line in the file switches position with the last, the secondline in the file switches with the next-to-last, and so on.Article<ACLASS="xref"HREF="ch25_19.htm"TITLE="Reverse Lines in Long Files with flip ">25.19</A>.</P></DD><DTCLASS="term">GNU fmt</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61412"></A><EMCLASS="emphasis">fmt</EM> neatens text into paragraphs that are (by default) no longerthan 72 characters.This GNU version has several other formatting features.Article<ACLASS="xref"HREF="ch35_02.htm"TITLE="Neatening Text with fmt ">35.2</A>.</P></DD><DTCLASS="term">fmt.sh *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61420"></A><EMCLASS="emphasis">fmt.sh</EM> is a shell script that uses <EMCLASS="emphasis">sed</EM> and <EMCLASS="emphasis">nroff</EM> tosimulate the behavior of the <EMCLASS="emphasis">fmt</EM> command.It is meant forsystems that are not distributed with <EMCLASS="emphasis">fmt</EM> already installed.Article<ACLASS="xref"HREF="ch35_03.htm"TITLE="Alternatives to fmt ">35.3</A>.</P></DD><DTCLASS="term">formprog *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61432"></A><EMCLASS="emphasis">formprog</EM> is a shell script for filling in forms.It looks fora template file (argument 1) and prompts the user for information,placing the completed form into an output file (argument 2).Article<ACLASS="xref"HREF="ch45_22.htm"TITLE="Handling Files Line-by-Line ">45.22</A>.</P></DD><DTCLASS="term">ftpfile *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61440"></A><EMCLASS="emphasis">ftpfile</EM> is a shell script for anonymously <EMCLASS="emphasis">ftp</EM>'ing a file.It is included on the disc as an example of a here document.Article <ACLASS="xref"HREF="ch08_18.htm"TITLE="Here Documents ">8.18</A>.</P></DD><DTCLASS="term">GNU awk (gawk), Version 3.0.3</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61449"></A><EMCLASS="emphasis">gawk</EM> is a version of <EMCLASS="emphasis">awk</EM> from the Free Software Foundation.It has many more features than the original <EMCLASS="emphasis">awk</EM>.Article<ACLASS="xref"HREF="ch33_12.htm"TITLE="Versions of awk ">33.12</A>.</P></DD><DTCLASS="term">getmac *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61459"></A><EMCLASS="emphasis">getmac</EM> is a shell script for printing a <EMCLASS="emphasis">troff</EM>macro definition in the specified macro package.  Article<ACLASS="xref"HREF="ch43_20.htm"TITLE="Displaying a troff Macro Definition ">43.20</A>.</P></DD><DTCLASS="term">getopt</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61468"></A><EMCLASS="emphasis">getopt</EM> is a public-domain implementation of the System V <EMCLASS="emphasis">getopt</EM>program.Not to be confused with the library routine, thisprogram helps scripts parse their options/flags/arguments.Article<ACLASS="xref"HREF="ch44_18.htm"TITLE="Standard Command-Line Parsing ">44.18</A>.</P></DD><DTCLASS="term">glimpse and agrep</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61477"></A><ACLASS="indexterm"NAME="AUTOID-61479"></A><EMCLASS="emphasis">glimpse</EM> is an indexing and query system that lets you search hugeamounts of text (for example, all of your files) very quickly.Part of the <EMCLASS="emphasis">glimpse</EM> package is <EMCLASS="emphasis">agrep</EM>,a standalone utility for fast text searching.<EMCLASS="emphasis">agrep</EM> is similar to the other members of the <EMCLASS="emphasis">grep</EM> family,but it is much more general (and usually faster).The enhancementsover other <EMCLASS="emphasis">grep</EM>s includethe ability to search for approximate patterns.Article<ACLASS="xref"HREF="ch27_08.htm"TITLE="glimpse and agrep ">27.8</A>.</P></DD><DTCLASS="term">GNU gnroff, Version 1.10</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61492"></A><EMCLASS="emphasis">gnroff</EM> is the GNU version of the <EMCLASS="emphasis">nroff</EM> text formatter.<EMCLASS="emphasis">gnroff</EM> is part of the <EMCLASS="emphasis">groff</EM> package.Article<ACLASS="xref"HREF="ch43_17.htm"TITLE="Don't Have nroff?  Try gnroff or awf ">43.17</A>.</P></DD><DTCLASS="term">grabchars</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61503"></A><EMCLASS="emphasis">grabchars</EM> gets one or more keystrokes from the user without requiringthem to press RETURN.It was written to make all types of shell scriptsmore interactive.Article<ACLASS="xref"HREF="ch45_32.htm"TITLE="A Better read Command: grabchars ">45.32</A>.</P></DD><DTCLASS="term">GNU grep, Version 2.0</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61511"></A>GNU <EMCLASS="emphasis">egrep</EM> (also linked to <EMCLASS="emphasis">grep</EM>) is about<ACLASS="indexterm"NAME="AUTOID-61515"></A>twice as fast as stock UNIX <EMCLASS="emphasis">egrep</EM>.Article<ACLASS="xref"HREF="ch27_09.htm"TITLE="New greps Are Much Faster ">27.9</A>.</P></DD><DTCLASS="term">GNU groff, Version 1.10</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61523"></A><EMCLASS="emphasis">groff</EM> is the GNU version of the <EMCLASS="emphasis">troff</EM> text formatter.Included are implementations of <EMCLASS="emphasis">troff</EM>, <EMCLASS="emphasis">pic</EM>, <EMCLASS="emphasis">eqn</EM>, <EMCLASS="emphasis">tbl</EM>,<EMCLASS="emphasis">refer</EM>, the <EMCLASS="emphasis">man</EM> macros and the <EMCLASS="emphasis">ms</EM> macros, and drivers for PostScript,TeX dvi format, and typewriter-like devices.Also included is amodified version of the Berkeley <EMCLASS="emphasis">me</EM> macros, and an enhanced versionof the<SPANCLASS="link">X11 (<ACLASS="linkend"HREF="ch01_31.htm"TITLE="The X Window System ">1.31</A>)</SPAN><EMCLASS="emphasis">xditview</EM>.Article<ACLASS="xref"HREF="ch43_16.htm"TITLE="groff ">43.16</A>.</P></DD><DTCLASS="term">GNU gzip, Version 1.2.4</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61542"></A><ACLASS="indexterm"NAME="AUTOID-61544"></A><ACLASS="indexterm"NAME="AUTOID-61546"></A>GNU <EMCLASS="emphasis">gzip</EM> allows compression of files. In addition to the <EMCLASS="emphasis">gzip</EM> program itself, the package includes<EMCLASS="emphasis">gunzip</EM> and <EMCLASS="emphasis">gzcat</EM>.Article<ACLASS="xref"HREF="ch24_07.htm"TITLE="Compressing Files to Save Space ">24.7</A>.</P></DD><DTCLASS="term">head *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61557"></A>The <EMCLASS="emphasis">head</EM> shell script simulates the behavior of the <EMCLASS="emphasis">head</EM>command distributed with many versions of UNIX.It is meant forsystems that do not have the <EMCLASS="emphasis">head</EM> program already installed.Article<ACLASS="xref"HREF="ch25_20.htm"TITLE="Printing the Top of a File ">25.20</A>.</P></DD><DTCLASS="term">hey *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61567"></A><EMCLASS="emphasis">hey</EM> is a shell script for people who use systems other thanUNIX-and type non-UNIX commands on a UNIXsystem.It prints a snide remark to remind you of your mistake, then runsthe UNIX command you intended to use.Article<ACLASS="xref"HREF="ch16_15.htm"TITLE="Script with a :-) for UNIX Converts: dir, ..., ... ">16.15</A>.</P></DD><DTCLASS="term">hgrep, Version OctR88</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61575"></A><EMCLASS="emphasis">hgrep</EM> is a trivial, but cute, front-end for <EMCLASS="emphasis">grep</EM>.It takes theresults ofthe <EMCLASS="emphasis">grep</EM> and highlights the word that was searched for.Article<ACLASS="xref"HREF="ch27_20.htm"TITLE="A Highlighting grep ">27.20</A>.</P></DD><DTCLASS="term">index, Version 1.0</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61585"></A><EMCLASS="emphasis">index</EM> allows you to maintain multiple databases of textualinformation, eachwith a different format.With each database, <EMCLASS="emphasis">index</EM> allows you toadd entries, delete entries, edit existing entries, search for entries using full regular expressions, and run all or part of the database through a user-configured filter.Articles<ACLASS="xref"HREF="ch48_11.htm"TITLE="The index Database Program ">48.11</A>and<ACLASS="xref"HREF="ch48_12.htm"TITLE="Using index with a Filter ">48.12</A>.</P></DD><DTCLASS="term">ipl, Version 1.0</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61595"></A><EMCLASS="emphasis">ipl</EM> is a two-dimensional graphic production system.It produces scatter plots,line plots, bar graphs, range displays, pie graphs, US/Canadamaps, schedule charts, boxes, arrows, text, etc.<EMCLASS="emphasis">ipl</EM> producesPostScript output, based on a user-supplied control file.  It also includes a table beautifier that is useful for taking plain texttables, spreadsheet output, etc. and setting them in a nice font.Article<ACLASS="xref"HREF="ch49_09.htm"TITLE="Business Graphics with ipl ">49.9</A>.</P></DD><DTCLASS="term">ispell, Version 3.1.20</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61604"></A><EMCLASS="emphasis">ispell</EM> is a fast screen-oriented spelling checker that showsyour errors in the context of the original file, and suggests possiblecorrections when it can figure them out.Compared to UNIX <EMCLASS="emphasis">spell</EM>, itis faster and much easier to use.<EMCLASS="emphasis">ispell</EM> can also handle languagesother than English.Article<ACLASS="xref"HREF="ch29_02.htm"TITLE="Check Spelling Interactively with ispell ">29.2</A>.</P></DD><DTCLASS="term">jot</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61614"></A><EMCLASS="emphasis">jot</EM> is a simple tool that allows you to print sequential orrandom data.It can be very useful for constructing loops in shell scripts.Article<ACLASS="xref"HREF="ch45_11.htm"TITLE="The Multipurpose jot Command ">45.11</A>.</P></DD><DTCLASS="term">lensort *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61622"></A><EMCLASS="emphasis">lensort</EM> sorts lines from shortest to longest.Article<ACLASS="xref"HREF="ch36_08.htm"TITLE="lensort: Sort Lines by Length ">36.8</A>.</P></DD><DTCLASS="term">less, Version 3.21</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61630"></A><EMCLASS="emphasis">less</EM> is an extremely flexible pager and is preferred by many to <EMCLASS="emphasis">pg</EM>or <EMCLASS="emphasis">more</EM>.<EMCLASS="emphasis">less</EM> has all of the functionality of <EMCLASS="emphasis">more</EM>,in addition to backwards scrolling, bookmarks, searching(forward and backward, single, and multi-file), andmany other useful features.Article<ACLASS="xref"HREF="ch25_04.htm"TITLE='The "less&quot; Pager: More than "more&quot;'>25.4</A>.</P></DD><DTCLASS="term">lf *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61642"></A><ACLASS="indexterm"NAME="AUTOID-61644"></A><ACLASS="indexterm"NAME="AUTOID-61646"></A><ACLASS="indexterm"NAME="AUTOID-61648"></A><ACLASS="indexterm"NAME="AUTOID-61650"></A><EMCLASS="emphasis">lf</EM> is actually five commands linked to the same script.Each command results in calling the <EMCLASS="emphasis">ls</EM> command with a differentset of command-line options.In addition to <EMCLASS="emphasis">lf</EM>, there is also<EMCLASS="emphasis">ll</EM>, <EMCLASS="emphasis">lg</EM>, <EMCLASS="emphasis">lm</EM>, and <EMCLASS="emphasis"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -