Files
JargonFile/original/html/U/UUOC.html
2014-03-27 18:54:56 +00:00

18 lines
2.6 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>UUOC</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../U.html" title="U"/><link rel="previous" href="UTSL.html" title="UTSL"/><link rel="next" href="../V.html" title="V"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">UUOC</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="UTSL.html">Prev</a> </td><th width="60%" align="center">U</th><td width="20%" align="right"> <a accesskey="n" href="../V.html">Next</a></td></tr></table><hr/></div><dt><a id="UUOC"/><dt xmlns="" id="UUOC"><b>UUOC</b></dt></dt><dd><p> [from the comp.unix.shell group on Usenet] Stands for <span class="firstterm">Useless Use of <a href="../C/cat.html"><i class="glossterm">cat</i></a></span>; the
reference is to the Unix command
<span class="citerefentry"><span class="refentrytitle">cat</span>(1)</span>,
not the feline animal. As received wisdom on comp.unix.shell observes,
&#8220;<span class="quote">The purpose of cat is to concatenate (or &#8216;catenate&#8217;)
files. If it's only one file, concatenating it with nothing at all is a
waste of time, and costs you a process.</span>&#8221; Nevertheless one sees
people doing</p><div class="literallayout"><p><br/>
cat file | some_command and its args ...<br/>
</p></div><p>instead of the equivalent and cheaper</p><div class="literallayout"><p><br/>
&lt;file some_command and its args ...<br/>
</p></div><p>or (equivalently and more classically)</p><div class="literallayout"><p><br/>
some_command and its args ... &lt;file<br/>
</p></div><p>Since 1995, occasional awards for UUOC have been given out, usually
by Perl luminary Randal L. Schwartz. There is a <a href="http://www.ling.helsinki.fi/~reriksso/unix/award.html" target="_top"> web
page</a> devoted to this and other similar awards.</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="UTSL.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../U.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="../V.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">UTSL </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> V</td></tr></table></div></body></html>