<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Delete recursively lines from files that match a given string</title>
	<atom:link href="http://asaliev.com/2009/11/30/delete-recursively-lines-from-files-that-match-a-given-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://asaliev.com/2009/11/30/delete-recursively-lines-from-files-that-match-a-given-string/</link>
	<description>Blog of Timur Asaliev</description>
	<lastBuildDate>Wed, 08 Jun 2011 08:42:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Timur Asaliev</title>
		<link>http://asaliev.com/2009/11/30/delete-recursively-lines-from-files-that-match-a-given-string/comment-page-1/#comment-10423</link>
		<dc:creator>Timur Asaliev</dc:creator>
		<pubDate>Wed, 08 Jun 2011 08:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://asaliev.com/?p=35#comment-10423</guid>
		<description>Leonid, the problem was to process many files at the same time. One of the hosting accounts was compromised by a virus on one (or more?) of the client&#039;s computers that appended  a malicious JavaScript to all PHP/HTML files

Thanks for the tip though!</description>
		<content:encoded><![CDATA[<p>Leonid, the problem was to process many files at the same time. One of the hosting accounts was compromised by a virus on one (or more?) of the client&#8217;s computers that appended  a malicious JavaScript to all PHP/HTML files</p>
<p>Thanks for the tip though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonid Mamchenkov</title>
		<link>http://asaliev.com/2009/11/30/delete-recursively-lines-from-files-that-match-a-given-string/comment-page-1/#comment-10398</link>
		<dc:creator>Leonid Mamchenkov</dc:creator>
		<pubDate>Tue, 07 Jun 2011 13:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://asaliev.com/?p=35#comment-10398</guid>
		<description>If you are using a real text editor, you can do it with one command without leaving to shell. :)

:g/pattern/d

As per this link:

http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern</description>
		<content:encoded><![CDATA[<p>If you are using a real text editor, you can do it with one command without leaving to shell. <img src='http://asaliev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>:g/pattern/d</p>
<p>As per this link:</p>
<p><a href="http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern" rel="nofollow">http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Asaliev</title>
		<link>http://asaliev.com/2009/11/30/delete-recursively-lines-from-files-that-match-a-given-string/comment-page-1/#comment-10393</link>
		<dc:creator>Timur Asaliev</dc:creator>
		<pubDate>Tue, 07 Jun 2011 13:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://asaliev.com/?p=35#comment-10393</guid>
		<description>Thanks, Chris! Your snippet is very sexy :)</description>
		<content:encoded><![CDATA[<p>Thanks, Chris! Your snippet is very sexy <img src='http://asaliev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://asaliev.com/2009/11/30/delete-recursively-lines-from-files-that-match-a-given-string/comment-page-1/#comment-10244</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 03 Jun 2011 11:08:25 +0000</pubDate>
		<guid isPermaLink="false">http://asaliev.com/?p=35#comment-10244</guid>
		<description>That seems like an awful lot of code for what sed does out-of-the-box.

&lt;code&gt;
#!/bin/sh

sed /$2/d $1 &gt; $1.xx &amp;&amp; mv $1.xx $1
&lt;/code&gt;

&lt;code&gt;
./rdel.sh file_to_process needle
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>That seems like an awful lot of code for what sed does out-of-the-box.</p>
<p><code><br />
#!/bin/sh</p>
<p>sed /$2/d $1 &gt; $1.xx &amp;&amp; mv $1.xx $1<br />
</code></p>
<p><code><br />
./rdel.sh file_to_process needle<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

