<?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>Obsolete Your Idols &#187; bash</title>
	<atom:link href="http://blog.manjusri.org/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.manjusri.org</link>
	<description>Book Reviews and Blather</description>
	<lastBuildDate>Tue, 31 Aug 2010 16:05:53 +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>Simple Nerdy Pleasures</title>
		<link>http://blog.manjusri.org/2008/10/12/simple-nerdy-pleasures/</link>
		<comments>http://blog.manjusri.org/2008/10/12/simple-nerdy-pleasures/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 19:10:31 +0000</pubDate>
		<dc:creator>binder</dc:creator>
				<category><![CDATA[Nerdery]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.manjusri.org/?p=68</guid>
		<description><![CDATA[Sometimes I find myself typing something over and over in a bash window and even with tab-completion, it&#8217;s still boring and tedious, in a sort of first-world no-one-is-killing-me fashion. But it&#8217;s still more work than I want to be doing, as a terminally lazy softcase. So I wrote a little one-off script to do the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I find myself typing something over and over in a bash window and even with tab-completion, it&#8217;s still boring and tedious, in a sort of first-world no-one-is-killing-me fashion.  But it&#8217;s still more work than I want to be doing, as a terminally lazy softcase.  So I wrote a little one-off script to do the work for me.  Like so:</p>
<p><code><br />
#!/bin/bash</code></p>
<p>echo Indexing $2 as level $1/$3<br />
if [ ! -d by-start-level/$1 ];<br />
then<br />
mkdir by-start-level/$1<br />
fi<br />
cd by-start-level/$1<br />
ln -s &#8220;../../$2&#8243; ./$3<br />
cd -</p>
<p>The effect I&#8217;m going for here is to end up with a symlink farm of files, indexed by minimum character level.  Pulling that out of the files themself is more work than I wanted to do, but it&#8217;s easy enough to open a file, eyeball grep out a number, and then call the script with the original name, character level and destination short name.  As a side-effect I can group otherwise unrelated files thematically.  So I can have a set of adventures designed for 5th level characters with a short handle of run_this_next-1, run_this_next-2 or use-these-maps-4 or whatever.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.manjusri.org/2008/10/12/simple-nerdy-pleasures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
