<?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>Pario TechnoBlob &#187; tail</title>
	<atom:link href="http://pario.no/tag/tail/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>&#8216;tail -f&#8217; with highlight</title>
		<link>http://pario.no/2008/09/03/tail-f-with-highlight/</link>
		<comments>http://pario.no/2008/09/03/tail-f-with-highlight/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 09:01:21 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[tail]]></category>

		<guid isPermaLink="false">http://pario.no/?p=560</guid>
		<description><![CDATA[This is an example of how you can use tail with colors. # tail -f /var/log/maillog &#124; perl -pe 's/colorthisword/\e[1;32;40m$&#038;\e[0m/g' The ;;; values explained 0 all attributes off 1 bold 32 foreground green 40 background black &#8220;colorthisword&#8221; can be any perl regular expression: (foo&#124;bar) highlight the strings foo and bar \b((foo&#124;bar)\b highlight the words foo [...]]]></description>
			<content:encoded><![CDATA[<p>This is an example of how you can use <b>tail</b> with colors.</p>
<pre>
# tail -f /var/log/maillog | perl -pe 's/colorthisword/\e[1;32;40m$&#038;\e[0m/g'</pre>
<p><b>The ;;; values explained</b></p>
<table border=1>
<tr>
<td>0 </td>
<td> all attributes off</td>
</tr>
<tr>
<td>1 </td>
<td> bold</td>
<p></tR></p>
<tr>
<td>32 </td>
<td> foreground green</td>
</tr>
<tr>
<td>40 </td>
<td> background black</td>
</tr>
</table>
<p>&#8220;colorthisword&#8221; can be any perl regular expression:</p>
<table border=1>
<tr>
<td>(foo|bar)</td>
<td> highlight the strings foo and bar</td>
</tr>
<tr>
<td>\b((foo|bar)\b</td>
<td> highlight the words foo and bar</td>
</tr>
<tr>
<td>.*\b((foo|bar)\b.*</td>
<td> highlight the whole line that contains the words foo or bar</td>
</tr>
</table>
<p><b>Colors</b><br />
This vector holds the colors used for SGR control sequences parameters 30 to 37 \(foreground colors) and 40 to 47 (background colors).</p>
<table border=1>
<tr>
<th colspan=2>Parameter</th>
<th>Color</th>
</tr>
<tr>
<td>  30  </td>
<td>40   </td>
<p><tD>black</td>
</tr>
<tr>
<td>  31  </td>
<td>41   </td>
<p><tD>red</td>
</tr>
<tr>
<td>  32  </td>
<td>42   </td>
<td>green</td>
</tr>
<tr>
<td>  33  </td>
<td>43   </tD>
<td>yellow</td>
</tr>
<tr>
<td>  34  </td>
<td>44   </td>
<td>blue</td>
</tr>
<tr>
<td>  35  </td>
<td>45   </td>
<td>magenta</td>
</tr>
<tr>
<td>  36  </td>
<td>46   </td>
<td>cyan</td>
</tr>
<tr>
<td>  37  </td>
<td>47   </td>
<td>white</td>
</tr>
</table>
<p><b>Note</b><br />
This only works on ANSI terminals</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDkvMDMvdGFpbC1mLXdpdGgtaGlnaGxpZ2h0Lzx3cHRiPiYjODIxNjt0YWlsIC1mJiM4MjE3OyB3aXRoIGhpZ2hsaWdodDx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/09/03/tail-f-with-highlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

