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

📄 ch43_01.htm

📁 the unix power tools
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<ACLASS="xref"HREF="ch43_05.htm"TITLE="Using Symbolic Links for Spooling ">43.5</A>,discuss the basic UNIX spooling system, and how to workwith it as a user.(We don't discuss the administrative aspects of spooling;that's a much more complicated topic, and not really appropriate forthis book.)Article<ACLASS="xref"HREF="ch43_06.htm"TITLE="Printing to a Terminal Printer ">43.6</A>shows one way to print to a terminal with its own printer.</P><PCLASS="para">The next few articles talk about how to format articles for printing&nbsp;- notthe kind of fancy formatting people think of nowadays, but simpler thingslike pagination, margins, and so on, for text files that are to be sent tothe line printer. Articles<ACLASS="xref"HREF="ch43_07.htm"TITLE="Quick-and-Dirty Formatting Before Printing ">43.7</A>through<ACLASS="xref"HREF="ch43_10.htm"TITLE="Filename Headers Above Files Without pr ">43.10</A>describe this kind of simple formatting.</P><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-47385"></A><ACLASS="indexterm"NAME="AUTOID-47388"></A><ACLASS="indexterm"NAME="AUTOID-47391"></A><ACLASS="indexterm"NAME="AUTOID-47393"></A>Historical note number two: why is the print spooler called <EMCLASS="emphasis">lp</EM> or<EMCLASS="emphasis">lpr</EM>?Because it typically spooled text to a line printer, a fastprinter that used a wide head to print an entire line at a time.These printers are still common in data processing applications, and theycan really fly!</P><PCLASS="para">In the mid-'70s, lots of UNIX people got excited about typesetting.Some typesetters were available that could be connected to computers,most notably the C/A/T phototypesetter.Programs like <EMCLASS="emphasis">troff</EM> andTeX were developed to format texts for phototypesetters: lettingcomputer people think that, because they could produce fancy output,they actually had some sense of design.Most of them didn't; if yougo back to the early days of typesetting, or even of laser printers,you probably remember lots of incredibly ugly documents masqueradingas &quot;good designs.&quot;(Gothic fonts on a dot matrix printer?Get real.)But that's another story.Tools like <EMCLASS="emphasis">troff</EM>,<EMCLASS="emphasis">nroff</EM> (a <EMCLASS="emphasis">troff</EM> equivalent that produces output for astandard terminal), and TeX are still with us, and still veryvaluable.They're discussed in articles<ACLASS="xref"HREF="ch43_12.htm"TITLE="Typesetting Overview ">43.12</A>through<ACLASS="xref"HREF="ch43_21.htm"TITLE="Preprocessing troff Input with sed ">43.21</A>.</P><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-47405"></A>Laser printers became commonplace in the mid-80s, allowing commonpeople to do high-quality printing: almost as good (but not quite) astrue typesetting.With laser printers came a widely used standardlanguage, called PostScript, to drive the printer.Tools like<EMCLASS="emphasis">troff</EM> and TeX now generated PostScript output files, which couldbe printed on any printer that understood the PostScript language.This was a big advantage: if you bought a new printer, you didn't haveto change your software; you could ship a PostScript filecross-country and be reasonably sure the recipient could print itcorrectly.[1]However, another problem appeared.PostScript is a complicatedlanguage; things that were easy with a simple text file were nowrather difficult.You can't just type up a letter and send it to your daisy wheel printer; you need to convert it into PostScript.It used to be easy to print &quot;just afew pages&quot; from the middle of a file, <EMCLASS="emphasis">grep</EM> through a file tofind something interesting, or to look at the file on yourscreen and read it.Not any more.We've ended this chapter with a few utilities forworking with PostScript files.Unfortunately, not enough; I playedwith lots of them, and while there were some winners, there were manymore losers: programs that worked sometimes but not most of the time.The winners are discussed in articles<ACLASS="xref"HREF="ch43_22.htm"TITLE="Converting Text Files to PostScript ">43.22</A>,<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><BLOCKQUOTECLASS="footnote"><PCLASS="para">[1] Documents were reasonably &quot;portable&quot; back in the line-printer era.Portability disappeared in the early days of computer typesetting, andonly reappeared when PostScript became the dominant page descriptionlanguage.[PostScript doesn't help someone who doesn't have the exact fontsused in the PostScript file&nbsp;- unless the person who created the fileincluded the fonts in it. <EMCLASS="emphasis">-JP</EM>&nbsp;]</P></BLOCKQUOTE><PCLASS="para">Finally, article<ACLASS="xref"HREF="ch43_25.htm"TITLE="The Portable Bitmap Package ">43.25</A>is about the <EMCLASS="emphasis">netpbm</EM> package.It's a useful tool for people who deal with graphics files.<EMCLASS="emphasis">netpbm</EM> converts between different graphics formats.<ACLASS="indexterm"NAME="AUTOID-47421"></A><ACLASS="indexterm"NAME="AUTOID-47422"></A></P><DIVCLASS="sect1info"><PCLASS="SECT1INFO">- <SPANCLASS="authorinitials">ML</SPAN></P></DIV></DIV></DIV><DIVCLASS="htmlnav"><P></P><HRALIGN="LEFT"WIDTH="515"TITLE="footer"><TABLEWIDTH="515"BORDER="0"CELLSPACING="0"CELLPADDING="0"><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch42_08.htm"TITLE="42.8 Errors Erased Too Soon? Try These Workarounds "><IMGSRC="gifs/txtpreva.gif"SRC="gifs/txtpreva.gif"ALT="Previous: 42.8 Errors Erased Too Soon? Try These Workarounds "BORDER="0"></A></TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><ACLASS="book"HREF="index.htm"TITLE="UNIX Power Tools"><IMGSRC="gifs/txthome.gif"SRC="gifs/txthome.gif"ALT="UNIX Power Tools"BORDER="0"></A></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch43_02.htm"TITLE="43.2 Introduction to Printing on UNIX "><IMGSRC="gifs/txtnexta.gif"SRC="gifs/txtnexta.gif"ALT="Next: 43.2 Introduction to Printing on UNIX "BORDER="0"></A></TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172">42.8 Errors Erased Too Soon? Try These Workarounds </TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><ACLASS="index"HREF="index/idx_0.htm"TITLE="Book Index"><IMGSRC="gifs/index.gif"SRC="gifs/index.gif"ALT="Book Index"BORDER="0"></A></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172">43.2 Introduction to Printing on UNIX </TD></TR></TABLE><HRALIGN="LEFT"WIDTH="515"TITLE="footer"><IMGSRC="gifs/smnavbar.gif"SRC="gifs/smnavbar.gif"USEMAP="#map"BORDER="0"ALT="The UNIX CD Bookshelf Navigation"><MAPNAME="map"><AREASHAPE="RECT"COORDS="0,0,73,21"HREF="../index.htm"ALT="The UNIX CD Bookshelf"><AREASHAPE="RECT"COORDS="74,0,163,21"HREF="index.htm"ALT="UNIX Power Tools"><AREASHAPE="RECT"COORDS="164,0,257,21"HREF="../unixnut/index.htm"ALT="UNIX in a Nutshell"><AREASHAPE="RECT"COORDS="258,0,321,21"HREF="../vi/index.htm"ALT="Learning the vi Editor"><AREASHAPE="RECT"COORDS="322,0,378,21"HREF="../sedawk/index.htm"ALT="sed &amp; awk"><AREASHAPE="RECT"COORDS="379,0,438,21"HREF="../ksh/index.htm"ALT="Learning the Korn Shell"><AREASHAPE="RECT"COORDS="439,0,514,21"HREF="../lrnunix/index.htm"ALT="Learning the UNIX Operating System"></MAP></DIV></BODY></HTML>

⌨️ 快捷键说明

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