JargonFile/original/html/G/grep.html
2014-03-27 18:54:56 +00:00

15 lines
2.6 KiB
HTML
Raw 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>grep</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="../G.html" title="G"/><link rel="previous" href="greenbar.html" title="greenbar"/><link rel="next" href="gribble.html" title="gribble"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">grep</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="greenbar.html">Prev</a> </td><th width="60%" align="center">G</th><td width="20%" align="right"> <a accesskey="n" href="gribble.html">Next</a></td></tr></table><hr/></div><dt><a id="grep"/><dt xmlns="" id="grep"><b>grep</b>: <span xmlns="http://www.w3.org/1999/xhtml" class="pronunciation">/grep/</span>, <span xmlns="http://www.w3.org/1999/xhtml" class="grammar">vi.</span></dt></dt><dd><p> [from the qed/ed editor idiom g/<span class="i">re</span>/p,
where <span class="i">re</span> stands for a regular expression, to
Globally search for the Regular Expression and Print the lines containing
matches to it, via <a href="../U/Unix.html"><i class="glossterm">Unix</i></a>
<span class="citerefentry"><span class="refentrytitle">grep</span>(1)</span>]
To rapidly scan a file or set of files looking for a particular string or
pattern (when browsing through a large set of files, one may speak of
<span class="firstterm">grepping around</span>). By extension, to
look for something by pattern. &#8220;<span class="quote">Grep the bulletin board for the
system backup schedule, would you?</span>&#8221; See also
<a href="../V/vgrep.html"><i class="glossterm">vgrep</i></a>.</p></dd><dd><p>[It has been alleged that the source is from the title of a paper
&#8220;<span class="quote">A General Regular Expression Parser</span>&#8221;, but dmr confirms the
g/re/p etymology --ESR]</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="greenbar.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../G.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="gribble.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">greenbar </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> gribble</td></tr></table></div></body></html>