<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jamesoff.net &#187; command line</title>
	<atom:link href="http://jamesoff.net/site/tag/command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesoff.net/site</link>
	<description>you heard</description>
	<lastBuildDate>Thu, 01 Sep 2011 17:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>grepping the output of ccze</title>
		<link>http://jamesoff.net/site/2008/07/09/grepping-the-output-of-ccze/</link>
		<comments>http://jamesoff.net/site/2008/07/09/grepping-the-output-of-ccze/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 13:46:34 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/?p=356</guid>
		<description><![CDATA[If you ever want to grep the output of ccze and found it didn&#8217;t work right, here&#8217;s the magic incantation to do it: tail somefile &#124; ccze -A -o noscroll &#124; grep ... -A makes ccze output ASCII sequences, and -o noscroll turns off the scroll option &#8211; whatever that is exactly. The man page [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever want to grep the output of ccze and found it didn&#8217;t work right, here&#8217;s the magic incantation to do it:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tail</span> somefile <span style="color: #000000; font-weight: bold;">|</span> ccze <span style="color: #660033;">-A</span> <span style="color: #660033;">-o</span> noscroll <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> ...</pre></div></div>


<p><code>-A</code> makes ccze output ASCII sequences, and <code>-o noscroll</code> turns off the scroll option &#8211; whatever that is exactly. The man page says it&#8217;s a good idea to turn it off if you&#8217;re redirecting the output. Omitting it seems to make the output appear in lumps :)</p>

<p>For example, keep an eye on squid logs omitting all MSN crap:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-F</span> access.log <span style="color: #000000; font-weight: bold;">|</span> ccze <span style="color: #660033;">-A</span> <span style="color: #660033;">-C</span> <span style="color: #660033;">-o</span> noscroll <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> gateway.dll</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2008/07/09/grepping-the-output-of-ccze/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

