<?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>Kirrus' Blog &#187; meta-reference</title>
	<atom:link href="http://kirrus.co.uk/tag/meta-reference/feed/" rel="self" type="application/rss+xml" />
	<link>http://kirrus.co.uk</link>
	<description>MindDump. Photos. And random ramblings.</description>
	<lastBuildDate>Sat, 21 Apr 2012 14:22:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Day 4 &#8211; Falling back to the meta-referance</title>
		<link>http://kirrus.co.uk/2008/11/day-4-falling-back-to-the-meta-referance/</link>
		<comments>http://kirrus.co.uk/2008/11/day-4-falling-back-to-the-meta-referance/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 20:32:42 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[meta-reference]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=91</guid>
		<description><![CDATA[Last night I posted on twitter that I was struggling to find stuff to post about. jkblacker (Not bassets, sorry Josh!) suggested that I post about how I&#8217;m finding it hard to find stuff to post about&#8230; so here it is Not exactly the most spectacular day 4, especially since I&#8217;ve got 26 left to [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I posted on twitter that I was struggling to find stuff to post about. <strong><a title="Josh Blacker" href="http://twitter.com/jkblacker">jkblacker</a></strong> (Not bassets, sorry Josh!) suggested that I post about how I&#8217;m finding it hard to find stuff to post about&#8230; so here it is <img src='http://kirrus.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Not exactly the most spectacular day 4, especially since I&#8217;ve got 26 left to go, but we&#8217;ll see what happens.</p>
<p>Parts for my new computer started arriving today. I&#8217;d hoped that it would all arrive, but unfortunately not. So, right now I&#8217;ve got RAM, the PSU, Motherboard, CPU cooler and a copy of Windows. (Yes, I know, horrible, but I&#8217;m building a gaming machine, wine isn&#8217;t there yet, and Linux hasn&#8217;t reached critical mass <img src='http://kirrus.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  )</p>
<p>Sporadically over the past week or so, I&#8217;ve been trying to use search and replace in vi/vim. Finally got it drummed into my head! Here&#8217;s the syntax for single item search and replace:</p>
<pre>:%s/OLDSTRING/NEWSTRING/</pre>
<p>If you want to replace every item in a document, then add &#8220;g&#8221; to the very end. &#8220;g&#8221; in this context means &#8220;greedy&#8221; &#8211; i.e. replace everything. (Thanks JPE &#8211; I did learn it after all!)</p>
<p>This is the same sort of syntax as usable in the command line tool &#8220;sed&#8221;. For example, if you wanted to replace a space in a file with a comma, then you&#8217;d do:</p>
<pre>sed 's/ /,/g' oldfile &gt; newfile</pre>
<p>I&#8217;m sure there&#8217;s a better way to specify that syntax&#8230; please feel free to comment <img src='http://kirrus.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2008/11/day-4-falling-back-to-the-meta-referance/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

