htmlgrep 0.3.1

htmlgrep is a suite of tools for searching HTML documents
Documentation
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@osx337.sd.apple.com" />
</head>

<body style="background-color: white">



<ul id="index">
  <li><a href="#NAME">NAME</a></li>
  <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="#FLAGS">FLAGS</a></li>
  <li><a href="#EXIT-STATUS">EXIT STATUS</a></li>
  <li><a href="#EXAMPLE">EXAMPLE</a></li>
  <li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>

<h1 id="NAME">NAME</h1>

<p>css - search HTML documents by CSS selectors</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<p><b>css</b> [<b>-c0h</b>] [<b>-m</b> <i>num</i>] <i>pattern</i> [<i>file</i>...]</p>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>Foo.</p>

<h1 id="FLAGS">FLAGS</h1>

<dl>

<dt id="c"><b>-c</b></dt>
<dd>

<p>Count hits, rather than enumerating them.</p>

</dd>
<dt id="pod-0"><b>-0</b></dt>
<dd>

<p>Use a <code>NUL</code> terminator for interoperability with other programs.</p>

</dd>
<dt id="m-num"><b>-m</b> <i>num</i></dt>
<dd>

<p>Limit search to <i>num</i> hits.</p>

</dd>
</dl>

<h1 id="EXIT-STATUS">EXIT STATUS</h1>

<dl>

<dt id="pod0"><b>0</b></dt>
<dd>

<p>Success.</p>

</dd>
<dt id="pod64"><b>64</b></dt>
<dd>

<p>Indicates a usage problem, such as passing an invalid flag or using a malformed selector.</p>

</dd>
<dt id="pod70"><b>70</b></dt>
<dd>

<p>An internal program error occurred whilst grepping the document.</p>

</dd>
<dt id="pod74"><b>74</b></dt>
<dd>

<p>An I/O error caused by failure to read or write to disk.</p>

</dd>
</dl>

<h1 id="EXAMPLE">EXAMPLE</h1>

<p>Given the followig HTML document, <i>blog.html</i>:</p>

<pre><code>        &lt;!doctype html&gt;
        &lt;meta charset=utf-8&gt;
        &lt;title&gt;My first blog post&lt;/title&gt;
        &lt;meta name=keywords content=blog,first,hello&gt;
        &lt;meta name=description content=&quot;First entry to blog.&quot;&gt;</code></pre>

<p>To find all occurrences of <code>&lt;meta</code>&gt; elements:</p>

<pre><code>        % css meta blog.html
        &lt;meta content=&quot;blog,first,hello&quot; name=&quot;keywords&quot;&gt;
        &lt;meta content=&quot;First entry to blog.&quot; name=&quot;description&quot;&gt;</code></pre>

<p>And to only look for <code>&lt;meta</code>&gt; elements with a name attribute equal to &quot;<i>keywords</i>&quot; and a content attribute containing &quot;<i>blog</i>&quot; in a space-separated list:</p>

<pre><code>        % css meta[name=keywords][content~=blog] blog.html
        &lt;meta content=&quot;blog,first,hello&quot; name=&quot;keywords&quot;&gt;</code></pre>

<p>It can also receive streaming content from stdin:</p>

<pre><code>        % curl -L https://sny.no/ | css title
        &lt;title&gt;Andreas Tolfsen&lt;/title&gt;</code></pre>

<h1 id="SEE-ALSO">SEE ALSO</h1>

<p><a href="http://man.he.net/man1/grep">grep(1)</a>, <a href="http://man.he.net/man1/sed">sed(1)</a>, <a href="http://man.he.net/man1/awk">awk(1)</a></p>


</body>

</html>