<?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> <!doctype html>
<meta charset=utf-8>
<title>My first blog post</title>
<meta name=keywords content=blog,first,hello>
<meta name=description content="First entry to blog."></code></pre>
<p>To find all occurrences of <code><meta</code>> elements:</p>
<pre><code> % css meta blog.html
<meta content="blog,first,hello" name="keywords">
<meta content="First entry to blog." name="description"></code></pre>
<p>And to only look for <code><meta</code>> elements with a name attribute equal to "<i>keywords</i>" and a content attribute containing "<i>blog</i>" in a space-separated list:</p>
<pre><code> % css meta[name=keywords][content~=blog] blog.html
<meta content="blog,first,hello" name="keywords"></code></pre>
<p>It can also receive streaming content from stdin:</p>
<pre><code> % curl -L https://sny.no/ | css title
<title>Andreas Tolfsen</title></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>