<?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>Backdrift &#187; grep</title>
	<atom:link href="http://backdrift.org/tag/grep/feed" rel="self" type="application/rss+xml" />
	<link>http://backdrift.org</link>
	<description></description>
	<lastBuildDate>Sun, 29 Aug 2010 20:41:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Printing the last occurrence of a string and everything below it with grep</title>
		<link>http://backdrift.org/printing-the-last-occurrance-of-a-string-and-everything-below-it-with-grep</link>
		<comments>http://backdrift.org/printing-the-last-occurrance-of-a-string-and-everything-below-it-with-grep#comments</comments>
		<pubDate>Thu, 28 Jan 2010 22:02:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://backdrift.org/?p=303</guid>
		<description><![CDATA[So far the simplest way find the last occurrence of a string and print everything below it is with a combination of grep and tac (it&#8217;s cat backwards, get it?!).
Say you want to find the last instance of foo and everything that came after it in a file:

 tac /var/log/logfile &#124; grep 'foo' -m 1 [...]]]></description>
		<wfw:commentRss>http://backdrift.org/printing-the-last-occurrance-of-a-string-and-everything-below-it-with-grep/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
