Home Files
Adminer
Execute Command
PHP Eval
Symlink
File Upload
Owner :
www-data
PHP Version
5.6.40-0+deb8u12
Disk Space
40.88 GB
Server Addr
19-www4
Your IP
10.10.10.40
Edit File
File:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Shorthand for search terms</title><link rel="stylesheet" type="text/css" href="aptitude.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="aptitude user's manual"><link rel="up" href="ch02s04.html" title="Search patterns"><link rel="prev" href="ch02s04s01.html" title="Searching for strings"><link rel="next" href="ch02s04s03.html" title="Searches and versions"><link rel="preface" href="pr01.html" title="Introduction"><link rel="chapter" href="ch01.html" title="Chapter 1. Getting started"><link rel="chapter" href="ch02.html" title="Chapter 2. aptitude reference guide"><link rel="chapter" href="ch03.html" title="Chapter 3. aptitude frequently asked questions"><link rel="chapter" href="ch04.html" title="Chapter 4. Credits"><link rel="reference" href="rn01.html" title="Command-line reference"><link rel="refentry" href="rn01re01.html" title="aptitude"><link rel="refentry" href="rn01re02.html" title="aptitude-create-state-bundle"><link rel="refentry" href="rn01re03.html" title="aptitude-run-state-bundle"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Shorthand for search terms</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s04s01.html"><img src="images/prev.gif" alt="Prev"></a> </td><th width="60%" align="center">Search patterns</th><td width="20%" align="right"> <a accesskey="n" href="ch02s04s03.html"><img src="images/next.gif" alt="Next"></a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="secSearchShorthand"></a>Shorthand for search terms</h3></div></div></div><p> Some search terms can be written using <span class="quote">“<span class="quote">short</span>”</span> forms, which consist of a tilde (<span class="quote">“<span class="quote"><code class="literal">~</code></span>”</span>) followed by a single character that identifies the term, and finally the arguments (if any) to the term. For instance, the short form of <code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchTermName">?name</a></code>(aptitude)</code> is <code class="literal">~n aptitude</code>. </p><p> When writing a term using its short form, tilde characters and <span class="quote">“<span class="quote">whitespace</span>”</span> -- that is, space characters, tabs, and so on -- will break the term off and start a new term. For instance, <span class="quote">“<span class="quote"><code class="literal">~mDaniel Burrows</code></span>”</span> will match any package whose maintainer field contains <span class="quote">“<span class="quote"><code class="literal">Daniel</code></span>”</span> and whose name contains <span class="quote">“<span class="quote"><code class="literal">Burrows</code></span>”</span>, while <span class="quote">“<span class="quote"><code class="literal">~i~napt</code></span>”</span> matches installed packages whose name contains <code class="literal">apt</code>. To include whitespace characters in the search expression, you can either place a tilde in front of it (as in <code class="literal">Daniel~ Burrows</code>) or place quotation marks around it (as in <code class="literal">"Debian Project"</code> or even <code class="literal">Debian" "Project</code>). Inside a quoted string, the backslash character (<span class="quote">“<span class="quote">\</span>”</span>) can be used to cancel the special meaning of the quotation mark: for instance, <code class="literal">~d"\"email"</code> will match any package whose description contains a quotation mark followed immediately by <code class="literal">email</code>. <a href="#ftn.idp57777920" class="footnote" name="idp57777920"><sup class="footnote">[16]</sup></a> </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td><th align="left">Note</th></tr><tr><td align="left" valign="top"><p> Question marks (<span class="quote">“<span class="quote"><code class="literal">?</code></span>”</span>) will <span class="emphasis"><em>not</em></span> end the short form of a term, even if they are followed by the name of a search term. For instance, <span class="quote">“<span class="quote"><code class="literal">~napt?priority(required)</code></span>”</span> will match all packages whose name matches the regular expression <span class="quote">“<span class="quote"><code class="literal">apt?priority(required)</code></span>”</span>. To combine a short query term with a search term specified by name, add one or more spaces between the two terms, as in <span class="quote">“<span class="quote"><code class="literal">~napt ?priority(required)</code></span>”</span>, or place quotation marks around the text (if any) following the short form of a term, as in <span class="quote">“<span class="quote"><code class="literal">~n"apt"?priority(required)</code></span>”</span>. </p></td></tr></table></div><p> <a class="xref" href="ch02s04s05.html#tableSearchTermQuickGuide" title="Table 2.3. Quick guide to search terms">Table 2.3, “Quick guide to search terms”</a> lists the short form of each search term. </p><div class="footnotes"><br><hr style="width:100; text-align:left;margin-left: 0"><div id="ftn.idp57777920" class="footnote"><p><a href="#idp57777920" class="para"><sup class="para">[16] </sup></a> The backslash escapes <code class="literal">\\</code>, <code class="literal">\n</code>, and <code class="literal">\t</code> are also available. </p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s04s01.html"><img src="images/prev.gif" alt="Prev"></a> </td><td width="20%" align="center"><a accesskey="u" href="ch02s04.html"><img src="images/up.gif" alt="Up"></a></td><td width="40%" align="right"> <a accesskey="n" href="ch02s04s03.html"><img src="images/next.gif" alt="Next"></a></td></tr><tr><td width="40%" align="left" valign="top">Searching for strings </td><td width="20%" align="center"><a accesskey="h" href="index.html"><img src="images/home.gif" alt="Home"></a></td><td width="40%" align="right" valign="top"> Searches and versions</td></tr></table></div></body></html>