<?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 a specific line from a text file with sed</title>
	<atom:link href="http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=delete-a-specific-line-from-a-text-file-with-sed</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:43:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Ryan</title>
		<link>http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed/comment-page-1#comment-455</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sat, 08 Jan 2011 03:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=513#comment-455</guid>
		<description>The easiest way would be to add a space.
&lt;code&gt;$ sed -i &#039;/Art\ / d&#039; file.txt&lt;/code&gt;

Good Luck</description>
		<content:encoded><![CDATA[<p>The easiest way would be to add a space.<br />
<code>$ sed -i '/Art\ / d' file.txt</code></p>
<p>Good Luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Len Richards</title>
		<link>http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed/comment-page-1#comment-454</link>
		<dc:creator>Len Richards</dc:creator>
		<pubDate>Fri, 07 Jan 2011 11:25:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=513#comment-454</guid>
		<description>If I use this command to remove the word Art it also removes lines with Artists, etc.  I am having no luck in finding how to remove lines with a specific word only. Any help would be appreciated

Art Covers
Various Artists</description>
		<content:encoded><![CDATA[<p>If I use this command to remove the word Art it also removes lines with Artists, etc.  I am having no luck in finding how to remove lines with a specific word only. Any help would be appreciated</p>
<p>Art Covers<br />
Various Artists</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed/comment-page-1#comment-122</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 03 Nov 2008 11:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=513#comment-122</guid>
		<description>Thanks for the comment. I have updated the article to answer your question.</description>
		<content:encoded><![CDATA[<p>Thanks for the comment. I have updated the article to answer your question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bogdan Cristea</title>
		<link>http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed/comment-page-1#comment-121</link>
		<dc:creator>Bogdan Cristea</dc:creator>
		<pubDate>Mon, 03 Nov 2008 09:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=513#comment-121</guid>
		<description>I need to used sed with already defined variables, e.g.
VAR=one
sed -i &#039;/$VAR/ d&#039; file.txt
The above example will not work since $VAR is not replaced by its content before sed will evaluate the pattern. 
Is there a way to do this ?</description>
		<content:encoded><![CDATA[<p>I need to used sed with already defined variables, e.g.<br />
VAR=one<br />
sed -i &#8216;/$VAR/ d&#8217; file.txt<br />
The above example will not work since $VAR is not replaced by its content before sed will evaluate the pattern.<br />
Is there a way to do this ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

