<?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>Joe Blog&#039;s &#187; bash</title>
	<atom:link href="http://blog.joeb454.com/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joeb454.com</link>
	<description>A Day In The Life Of Your Average Joe</description>
	<lastBuildDate>Fri, 07 Oct 2011 19:04:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>A Practical Guide To&#8230;</title>
		<link>http://blog.joeb454.com/2009/12/a-practical-guide-to/</link>
		<comments>http://blog.joeb454.com/2009/12/a-practical-guide-to/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 22:32:34 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://blog.joeb454.com/?p=390</guid>
		<description><![CDATA[...Linux Commands, Editors, &#38; Shell Programming. I was lucky enough to be asked to review the 2nd edition of the aforementioned book. I just received my copy today, so many thanks to the guys that made that possible! From what I've read of the book in its draft form, it's a book that will come [...]]]></description>
			<content:encoded><![CDATA[<p>...Linux Commands, Editors, &amp; Shell Programming.</p>
<p>I was lucky enough to be asked to review the 2nd edition of the aforementioned book. I just received my copy today, so many thanks to the guys that made that possible! From what I've read of the book in its draft form, it's a book that will come in incredibly useful to me, as I'm a big fan of shell programming &amp; generally using the shell*.</p>
<p>If you're looking to become more familiar with the shell/command line in Linux, I'd definitely recommend it.</p>
<p><a title="A Practical Guide To..." href="http://www.amazon.co.uk/Practical-Guide-Commands-Editors-Programming/dp/0131367366/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1262172892&amp;sr=8-1">Amazon Link</a></p>
<p>*<em>No flames please!</em> <img src='http://blog.joeb454.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joeb454.com/2009/12/a-practical-guide-to/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Long Time No Blog</title>
		<link>http://blog.joeb454.com/2009/08/long-time-no-blog/</link>
		<comments>http://blog.joeb454.com/2009/08/long-time-no-blog/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 23:07:10 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://blog.joeb454.com/?p=325</guid>
		<description><![CDATA[Clearly I haven't blogged for a while - this was evident by the fact I had a wordpress upgrade waiting to be done, and no less than 8 plugin upgrades! Now normally, I don't mind being all long winded about plugin upgrades, because it's usually just one or 2. Now because I'm picky and awkward, [...]]]></description>
			<content:encoded><![CDATA[<p>Clearly I haven't blogged for a while - this was evident by the fact I had a wordpress upgrade waiting to be done, and no less than 8 plugin upgrades!</p>
<p>Now normally, I don't mind being all long winded about plugin upgrades, because it's usually just one or 2. Now because I'm picky and awkward, the WP auto-upgrade for plugins doesn't seem to work on my server. Instead of fixing that, I simply wrote a bash script. The contents of which are:</p>
<pre>
<div class="codesnip-container" >
<div class="bash codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="co0">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="re4">$#</span> == 2 <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">new</span>=$2</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">else</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">new</span>=$1</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="re5">-d</span> $1 <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">rm</span> <span class="re5">-rf</span> .<span class="sy0">/</span>$1</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">wget</span> http:<span class="sy0">//</span>downloads.wordpress.org<span class="sy0">/</span>plugin<span class="sy0">/</span><span class="re1">$new</span>.zip</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">unzip</span> .<span class="sy0">/*</span>.zip</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">rm</span> .<span class="sy0">/*</span>.zip</div>
</li>
</ol>
</div>
</div>
</pre>
<p>Not sure if anybody wants to use that - I'm sure it could be improved, but it satisfied 2 of my needs. I now have an easier way to update (and install, I guess) plugins, and a lesser desire to code things. I now have to think of my next blog topic so I can get back on track!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joeb454.com/2009/08/long-time-no-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

