<?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 for Culmination.org</title>
	<atom:link href="http://www.culmination.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.culmination.org</link>
	<description>You are what you&#039;ve become.</description>
	<lastBuildDate>Mon, 03 Oct 2011 00:25:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Sed on Mac OS X 10.5 Leopard by mike</title>
		<link>http://www.culmination.org/2008/02/sed-on-mac-os-x-105-leopard/#comment-46</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 03 Oct 2011 00:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/2008/02/10/sed-on-mac-os-x-105-leopard/#comment-46</guid>
		<description>This is why even though I hardly update my blog, I won&#039;t take it down :) thanks everyone for adding insight!</description>
		<content:encoded><![CDATA[<p>This is why even though I hardly update my blog, I won&#8217;t take it down <img src='http://www.culmination.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  thanks everyone for adding insight!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sed on Mac OS X 10.5 Leopard by rdz</title>
		<link>http://www.culmination.org/2008/02/sed-on-mac-os-x-105-leopard/#comment-45</link>
		<dc:creator>rdz</dc:creator>
		<pubDate>Wed, 28 Sep 2011 07:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/2008/02/10/sed-on-mac-os-x-105-leopard/#comment-45</guid>
		<description>Stumbled on this today. Late to the party, but for your case, there&#039;s an alternative approach, which is cleaner, imo. Took the liberty of condensing your regex a bit for brevity:

sed  -i .bak &#039;/^\$config_file = .*dev\/config.php&quot;;$/ {
s_.*_//&amp;_
a\
$config_file = &quot;dev/config.php&quot;;
}&#039; *.php


A few notes: This uses pattern matching to only apply a block of commands to lines matching a particular pattern.  So on lines that match the $config_file pattern, we do the substitution.  Note that since we already know the line is the correct line, the actual search &amp; replace pattern is much simpler: .* is the string to search.  We can use &amp; to represent the entirety of the match (the entire line).  Also, although it&#039;s typical to use / as the delimiter for the s command, you can pick almost any other character.  Here, I&#039;ve used _ to avoid having to escape the //.  For the newline problem, we use the a\ command to explicitly add a new line to the output stream.

Voila, \n issue resolved.

Cheers.</description>
		<content:encoded><![CDATA[<p>Stumbled on this today. Late to the party, but for your case, there&#8217;s an alternative approach, which is cleaner, imo. Took the liberty of condensing your regex a bit for brevity:</p>
<p>sed  -i .bak &#8216;/^\$config_file = .*dev\/config.php&#8221;;$/ {<br />
s_.*_//&#038;_<br />
a\<br />
$config_file = &#8220;dev/config.php&#8221;;<br />
}&#8217; *.php</p>
<p>A few notes: This uses pattern matching to only apply a block of commands to lines matching a particular pattern.  So on lines that match the $config_file pattern, we do the substitution.  Note that since we already know the line is the correct line, the actual search &#038; replace pattern is much simpler: .* is the string to search.  We can use &#038; to represent the entirety of the match (the entire line).  Also, although it&#8217;s typical to use / as the delimiter for the s command, you can pick almost any other character.  Here, I&#8217;ve used _ to avoid having to escape the //.  For the newline problem, we use the a\ command to explicitly add a new line to the output stream.</p>
<p>Voila, \n issue resolved.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sed on Mac OS X 10.5 Leopard by Chris Brinker</title>
		<link>http://www.culmination.org/2008/02/sed-on-mac-os-x-105-leopard/#comment-44</link>
		<dc:creator>Chris Brinker</dc:creator>
		<pubDate>Fri, 09 Sep 2011 22:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/2008/02/10/sed-on-mac-os-x-105-leopard/#comment-44</guid>
		<description>The issue here is not with OSX per-se as it is with the default version of sed you get with OSX.

/usr/bin/sed is the BSD version from May 10, 2005

Optionally, you can install gnu sed or gsed  via ports (currently 4.2.1 from June 2009) that behaves as you are accustomed to on linux.

$ echo &quot;a b c d&quot; &#124; gsed &#039;s/ /\n/g&#039;
a
b
c
d</description>
		<content:encoded><![CDATA[<p>The issue here is not with OSX per-se as it is with the default version of sed you get with OSX.</p>
<p>/usr/bin/sed is the BSD version from May 10, 2005</p>
<p>Optionally, you can install gnu sed or gsed  via ports (currently 4.2.1 from June 2009) that behaves as you are accustomed to on linux.</p>
<p>$ echo &#8220;a b c d&#8221; | gsed &#8216;s/ /\n/g&#8217;<br />
a<br />
b<br />
c<br />
d</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ISC DHCPD duplicate uid lease by [8.164][QUESTION][OPEN] Remove duplicate ip (DHCP) - Astaro User Bulletin Board</title>
		<link>http://www.culmination.org/2008/10/isc-dhcpd-duplicate-uid-lease/#comment-54</link>
		<dc:creator>[8.164][QUESTION][OPEN] Remove duplicate ip (DHCP) - Astaro User Bulletin Board</dc:creator>
		<pubDate>Thu, 12 May 2011 08:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/?p=304#comment-54</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sed on Mac OS X 10.5 Leopard by Newlines in sed on Mac &#171; Caffeinated</title>
		<link>http://www.culmination.org/2008/02/sed-on-mac-os-x-105-leopard/#comment-43</link>
		<dc:creator>Newlines in sed on Mac &#171; Caffeinated</dc:creator>
		<pubDate>Mon, 06 Dec 2010 00:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/2008/02/10/sed-on-mac-os-x-105-leopard/#comment-43</guid>
		<description>[...] enough I found a blog post that discussed, among other things, how to inject a newline using sed on Mac. Although the example [...]</description>
		<content:encoded><![CDATA[<p>[...] enough I found a blog post that discussed, among other things, how to inject a newline using sed on Mac. Although the example [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP/Recode fail by gryff</title>
		<link>http://www.culmination.org/2008/12/phprecode-fail/#comment-59</link>
		<dc:creator>gryff</dc:creator>
		<pubDate>Mon, 09 Aug 2010 13:31:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/?p=320#comment-59</guid>
		<description>Thank you very much! I have gotten the same problem after using the portupgrade. Lighttpd stoped the working. I have been crazy before found your blog. Exactly placing the extension=recode.so on the first line of the extensions.ini file fixed the problem.
The problem resolved. It is a production server. I&#039;m happy.</description>
		<content:encoded><![CDATA[<p>Thank you very much! I have gotten the same problem after using the portupgrade. Lighttpd stoped the working. I have been crazy before found your blog. Exactly placing the extension=recode.so on the first line of the extensions.ini file fixed the problem.<br />
The problem resolved. It is a production server. I&#8217;m happy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ISC DHCPD duplicate uid lease by mike</title>
		<link>http://www.culmination.org/2008/10/isc-dhcpd-duplicate-uid-lease/#comment-53</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 10 May 2010 11:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/?p=304#comment-53</guid>
		<description>Thanks Bobby!</description>
		<content:encoded><![CDATA[<p>Thanks Bobby!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ISC DHCPD duplicate uid lease by Bobby</title>
		<link>http://www.culmination.org/2008/10/isc-dhcpd-duplicate-uid-lease/#comment-52</link>
		<dc:creator>Bobby</dc:creator>
		<pubDate>Mon, 10 May 2010 11:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/?p=304#comment-52</guid>
		<description>Hi Shash,

you need to set the &quot;deny duplicates;&quot; statement in the dhcpd.conf configuration file.</description>
		<content:encoded><![CDATA[<p>Hi Shash,</p>
<p>you need to set the &#8220;deny duplicates;&#8221; statement in the dhcpd.conf configuration file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on X11 Forwarding via SSH from OpenBSD 4.4 to OS X 10.5.5 by mike</title>
		<link>http://www.culmination.org/2008/11/x11-forwarding-via-ssh-from-openbsd-44-to-os-x-1055/#comment-56</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 26 Apr 2010 15:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/?p=316#comment-56</guid>
		<description>True indeed!</description>
		<content:encoded><![CDATA[<p>True indeed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on X11 Forwarding via SSH from OpenBSD 4.4 to OS X 10.5.5 by andrew</title>
		<link>http://www.culmination.org/2008/11/x11-forwarding-via-ssh-from-openbsd-44-to-os-x-1055/#comment-55</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Sun, 25 Apr 2010 02:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.culmination.org/?p=316#comment-55</guid>
		<description>Isn&#039;t it a little safer to code &lt;code&gt;ssh -X user@openbsd_machine program&lt;/code&gt; instead?</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t it a little safer to code <code>ssh -X user@openbsd_machine program</code> instead?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

