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

📄 ch52_04.htm

📁 the unix power tools
💻 HTM
📖 第 1 页 / 共 5 页
字号:
>lr</EM>.Article<ACLASS="xref"HREF="ch16_07.htm"TITLE="ls Shortcuts: ll, lf, lg, etc. ">16.7</A>.</P></DD><DTCLASS="term">lndir</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61664"></A><EMCLASS="emphasis">lndir</EM> is a safe way to duplicate a directory structure elsewhere on the filesystem.It's necessary because a <EMCLASS="emphasis">cd</EM> into a straight symbolic link actuallychanges to the directory pointed to by the link, which can be confusing oreven dangerous if the link is in a sensitive area of the filesystem.  <EMCLASS="emphasis">lndir</EM> recursively re-createsa directory structure, making symbolic links to all the files in thedirectory.Article<ACLASS="xref"HREF="ch18_07.htm"TITLE="Linking Directories ">18.7</A>.</P></DD><DTCLASS="term">logerrs, Version 1.0 *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61674"></A>The <EMCLASS="emphasis">logerrs</EM> script sends errors to a log file as well as to standard error.  Article<ACLASS="xref"HREF="ch13_16.htm"TITLE="Store and Show Errors with logerrs ">13.16</A>.</P></DD><DTCLASS="term">longlines *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61682"></A>The <EMCLASS="emphasis">longlines</EM> file contains several lines with 200 columns oftext.You can use this file to test whether line wrapping is workingcorrectly, or to adjust windows to a particular size,with:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">cat longlines</PRE></BLOCKQUOTE></P><PCLASS="para">Article<ACLASS="xref"HREF="ch42_06.htm"TITLE="Screen Size Testing Files ">42.6</A>.</P></DD><DTCLASS="term">look</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61693"></A><EMCLASS="emphasis">look</EM> is a fairly fast, fairly portable version of <EMCLASS="emphasis">look</EM>. Article<ACLASS="xref"HREF="ch27_18.htm"TITLE='Fast Searches and Spelling Checks with  "look&quot;'>27.18</A>.</P></DD><DTCLASS="term">lookfor *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61702"></A>The <EMCLASS="emphasis">lookfor</EM> script finds all files in the given directory treethat contain the given string(s).  Article <ACLASS="xref"HREF="ch17_21.htm"TITLE="lookfor: Which File Has that Word? ">17.21</A>.</P></DD><DTCLASS="term">ls_today *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61710"></A><EMCLASS="emphasis">ls_today</EM> is a shell script to print the names of filesthat have been created or edited today.Article<ACLASS="xref"HREF="ch16_18.htm"TITLE="Listing Files You've Created/Edited Today ">16.18</A>.</P></DD><DTCLASS="term">make_print *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61718"></A><EMCLASS="emphasis">make_print</EM> is an example Makefile for printing a series of files that have changed.It is meant to be renamed <EMCLASS="emphasis">makefile</EM> or <EMCLASS="emphasis">Makefile</EM> and runwith <EMCLASS="emphasis">make</EM>.Article<ACLASS="xref"HREF="ch21_09.htm"TITLE="Keep File Printouts Up-to-Date Automatically with make">21.9</A>.</P></DD><DTCLASS="term">manindex *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61729"></A><EMCLASS="emphasis">manindex</EM> simulates the behavior of the <EMCLASS="emphasis">apropos</EM> commandfound on many systems.It generates an index that you can latersearch using the following alias:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">alias apropos &quot;grep -i /!$ <CODECLASS="replaceable"><I>indexfile</I></CODE>&quot;</PRE></BLOCKQUOTE></P><PCLASS="para">Article<ACLASS="xref"HREF="ch50_03.htm"TITLE="apropos on Systems Without apropos ">50.3</A>.</P></DD><DTCLASS="term">motd.diff *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61742"></A><EMCLASS="emphasis">motd.diff</EM> is a shell script to be called from your <EMCLASS="emphasis">.login</EM>file.It only displays lines in the message-of-the-day that havechanged since the previous login.Article<ACLASS="xref"HREF="ch02_14.htm"TITLE="motd.diff: Show New Lines in Login Messages">2.14</A>.</P></DD><DTCLASS="term">namesort *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61751"></A>The <EMCLASS="emphasis">namesort</EM> program sorts a list of names by the last name.Article<ACLASS="xref"HREF="ch36_09.htm"TITLE="Sorting a List of People by Last Name ">36.9</A>.</P></DD><DTCLASS="term">netpbm, Version 1mar94</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61759"></A><EMCLASS="emphasis">netpbm</EM> is the latest version of <EMCLASS="emphasis">pbmplus</EM>, theExtended Portable Bitmap Toolkit.<EMCLASS="emphasis">netpbm</EM> converts various image formats to and fromportable formats, and therefore to and from one another.  In addition to the converters, the package includes some simple toolsfor manipulating the portable formats.Article<ACLASS="xref"HREF="ch43_25.htm"TITLE="The Portable Bitmap Package ">43.25</A>.</P></DD><DTCLASS="term">nextday *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61769"></A><ACLASS="indexterm"NAME="AUTOID-61771"></A>The <EMCLASS="emphasis">nextday</EM> shell script returns the name ofthe next day of the week, to supply to the <EMCLASS="emphasis">at</EM> command.It can also be linked to the name <EMCLASS="emphasis">nextweekday</EM>, in whichcase the next weekday is returned (for example, on Friday <EMCLASS="emphasis">nextweekday</EM> will return <CODECLASS="literal">Monday</CODE>).Article<ACLASS="xref"HREF="ch40_10.htm"TITLE="nextday, nextweekday: Tomorrow or Next Weekday ">40.10</A>.</P></DD><DTCLASS="term">no_run *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61783"></A>The <EMCLASS="emphasis">no_run</EM> file contains an example of a shell script that you can enter into your private <EMCLASS="emphasis">$HOME/bin</EM> directory and link to the namesof programs that you might not want to run on some systems.It'smeant for use on a network where you have the same homedirectory on several machines of different architectures.  After editing the script, you can link it to the names of thecommands that are run differently (or not at all) on some systems.Of course, the directory that you install and link the scriptsin (such as <EMCLASS="emphasis">$HOME/bin</EM>) must be in your path before any system-wide executables.Article<ACLASS="xref"HREF="ch08_08.htm"TITLE="A Directory for Commands You Shouldn't Run ">8.8</A>.</P></DD><DTCLASS="term">nom *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61793"></A><EMCLASS="emphasis">nom</EM> (&quot;no match&quot;) supplies the names of the files in the current directorythat <EMCLASS="emphasis">don't</EM> match the given shell wildcards.For example, toedit all files in the current directory that don't end in <EMCLASS="emphasis">.o</EM>,try:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">vi `nom *.o`</PRE></BLOCKQUOTE></P><PCLASS="para">Article<ACLASS="xref"HREF="ch15_09.htm"TITLE="nom: List Files that Don't Match a Wildcard ">15.9</A>.</P></DD><DTCLASS="term">offset *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61806"></A>The <EMCLASS="emphasis">offset</EM> shell script indents text for printing or other uses.Article<ACLASS="xref"HREF="ch35_07.htm"TITLE="offset: Indent Text ">35.7</A>.</P></DD><DTCLASS="term">oldlinks *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61814"></A><EMCLASS="emphasis">oldlinks</EM> is a shell script that prints the names of &quot;stale&quot;symbolic links.Article<ACLASS="xref"HREF="ch16_28.htm"TITLE="oldlinks: Find Unconnected Symbolic Links ">16.28</A>.</P></DD><DTCLASS="term">opttest *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61822"></A><EMCLASS="emphasis">opttest</EM> is a shell script for parsing <EMCLASS="emphasis">getopt</EM> output.It'smeant to demonstrate <EMCLASS="emphasis">getopt</EM>'s behavior.Article<ACLASS="xref"HREF="ch44_18.htm"TITLE="Standard Command-Line Parsing ">44.18</A>.</P></DD><DTCLASS="term">paircheck *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61832"></A><EMCLASS="emphasis">paircheck</EM> is an example script for making sure thatstrings in a file have matching counterparts.<EMCLASS="emphasis">paircheck</EM>checks that each <CODECLASS="literal">.TS</CODE> in a given <EMCLASS="emphasis">troff</EM> file has acorresponding <CODECLASS="literal">.TE</CODE>; but it's easy to modify to check otherkinds of pairs. Article<ACLASS="xref"HREF="ch29_09.htm"TITLE="Looking for Closure ">29.9</A>.</P></DD><DTCLASS="term">patch, Version 2.1</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61844"></A><EMCLASS="emphasis">patch</EM> is Larry Wall's program for distributing source patches tofiles.By using <EMCLASS="emphasis">diff</EM> files (generally &quot;context&quot; <EMCLASS="emphasis">diff</EM>s), <EMCLASS="emphasis">patch</EM> canintelligently apply patches to a file even if modifications have beenmade to the source in the meantime.<EMCLASS="emphasis">patch</EM> is used extensively tocommunicate source changes throughout the world.Article<ACLASS="xref"HREF="ch33_09.htm"TITLE="patch: Generalized Updating of Files that Differ ">33.9</A>.</P></DD><DTCLASS="term">pcal, Version 4.3</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61856"></A><EMCLASS="emphasis">pcal</EM> generates PostScript to produce landscape or portrait calendars for any month and year.By default, <EMCLASS="emphasis">pcal</EM> simply prints an empty calendar.  Its real power is in itsability to place &quot;events&quot; in appropriate days on the calendar, thusallowing the user to create personalized calendars.  Article<ACLASS="xref"HREF="ch48_09.htm"TITLE="PostScript Calendars with pcal ">48.9</A>.</P></DD><DTCLASS="term">perl, Version 5</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61865"></A><EMCLASS="emphasis">perl</EM> (Practical Extraction and Report Language) is aninterpreted language optimized for scanning arbitrary text files,extracting information from those text files, and printing reportsbased on that information. It has exceptionally powerful string, file,and system routines to quickly create almost any utility. An addeddebugger makes <EMCLASS="emphasis">perl</EM> an attractive alternative to <EMCLASS="emphasis">awk</EM> or<EMCLASS="emphasis">gawk</EM>. <EMCLASS="emphasis">perl</EM> 5 is a new and improved version of <EMCLASS="emphasis">perl</EM> 4.Article<ACLASS="xref"HREF="ch37_05.htm"TITLE="And Now, Perl 5 ">37.5</A>tells some of what's new.</P></DD><DTCLASS="term">phone *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61878"></A><EMCLASS="emphasis">phone</EM> is a shell script that displays lines in a filecalled <EMCLASS="emphasis">phone</EM>,matching the given string to standard output.It is also linkedto the name <EMCLASS="emphasis">address</EM>, in which case it returns matching lines in afile named <EMCLASS="emphasis">address</EM> to <EMCLASS="emphasis">stdout</EM>.Article<ACLASS="xref"HREF="ch48_02.htm"TITLE="Online Phone and Address Lists ">48.2</A>.</P></DD><DTCLASS="term">pipegrep *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61890"></A><EMCLASS="emphasis">pipegrep</EM> searches through the output of a series of commands,printing the command that produced each line of output.Article<ACLASS="xref"HREF="ch27_13.htm"TITLE="More grep-like Programs Written in Perl ">27.13</A>.</P></DD><DTCLASS="term">pstext</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61898"></A><EMCLASS="emphasis">pstext</EM> is a utility for converting text files to PostScriptfiles&nbsp;- usually for a PostScript printer.It includes options for printing &quot;landscape&quot; mode, for specifying a font, and for specifying a point size.  Article<ACLASS="xref"HREF="ch43_22.htm"TITLE="Converting Text Files to PostScript ">43.22</A>.</P></DD><DTCLASS="term">psutils, Version 1.17</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-61906"></A><EMCLASS="emphasis">psutils</EM> is a collection of utilities for manipulating PostScript documents: rearranging pages, printing only some pages, andso on.Articles<ACLASS="xref"HREF="ch43_23.htm"TITLE="psselect: Print Some Pages from a PostScript file">43.23</A>and<ACLASS="xref"HREF="ch43_24.htm"TITLE="Other PostScript Utilities ">43.24</A>.</P></DD><DTCLASS="term">pushin *</DT><DDCLASS="listitem"><PCLASS="para"><ACLASS="indexterm"

⌨️ 快捷键说明

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