<?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>Stuphi &#187; perl</title>
	<atom:link href="http://stuphi.co.uk/wordpress/tag/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://stuphi.co.uk/wordpress</link>
	<description>Web stuff of Philip Stubbs</description>
	<lastBuildDate>Tue, 22 Jun 2010 10:59:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>By the power of SED</title>
		<link>http://stuphi.co.uk/wordpress/2008/04/28/by-the-power-of-sed/</link>
		<comments>http://stuphi.co.uk/wordpress/2008/04/28/by-the-power-of-sed/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 10:23:48 +0000</pubDate>
		<dc:creator>philip</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://stuphi.co.uk/wordpress/?p=75</guid>
		<description><![CDATA[I think I have just used sed for the first time. Well the first time where I have decided what the problem is and that the solution requires sed, and then using it. This is a big deal for me. I have been aware of sed, and awk for a log time. I have even [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://stuphi.co.uk/wordpress/wp-content/uploads/2008/04/title1.png'><img src="http://stuphi.co.uk/wordpress/wp-content/uploads/2008/04/title1.png" alt="It\&#039;s a graph!" title="title1" width="309" height="183" class="alignright size-full wp-image-76" /></a>I think I have just used <a href="http://en.wikipedia.org/wiki/Sed">sed</a> for the first time. Well the first time where I have decided what the problem is and that the solution requires sed, and then using it.</p>
<p>This is a big deal for me. I have been aware of sed, and awk for a log time. I have even used them either when advised by others or as part of scripts that I have run (but not written).</p>
<p>This time, however, I can say it is all my own work. I have some data at work that I need to graph. There is too much to simply load into a spreadsheet, so I have to munge it a bit before I can use it. A simple perl program does that for me, and outputs a csv file that I can quickly load into a spreadsheet and make a graph. Once it I am happy that the data is correct, I then use <a href="http://www.gnuplot.info/">Gnuplot</a> to generate my final graphs. The problem is that gnuplot likes to have tab separated values, not comma separated. Here comes sed to the rescue.</p>
<p><code>sed 's/,/\t/g' data.csv >data.txt</code></p>
<p>Now that may not exactly be rocket science, but I very nearly wrote my own perl program to do that for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuphi.co.uk/wordpress/2008/04/28/by-the-power-of-sed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
