<?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>Random Geekage &#187; script</title>
	<atom:link href="http://kevinisageek.org/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://kevinisageek.org</link>
	<description>Randomness, geekery and whatever else I feel like</description>
	<lastBuildDate>Tue, 07 Sep 2010 21:59:00 +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>I love bash</title>
		<link>http://kevinisageek.org/2008/04/16/i-love-bash/</link>
		<comments>http://kevinisageek.org/2008/04/16/i-love-bash/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 20:22:46 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.kevinisageek.org/weblog/?p=53</guid>
		<description><![CDATA[I really do love the Bash shell, particularly the ability to do scripting. I wanted to make all the files in a directory have lowercase filenames. It gets tedious when doing it by hand and there is no native way to do i in Nautilus (file browser in Gnome). Thunar (Xfce window manager file manager) [...]]]></description>
			<content:encoded><![CDATA[<p>I really do love the Bash shell, particularly the ability to do scripting.  I wanted to make all the files in a directory have lowercase filenames. It gets tedious when doing it by hand and there is no native way to do i in Nautilus (file browser in Gnome). Thunar (Xfce window manager file manager) does have this facility but I&#8217;m not gonna install it and all its dependancies. So with a quick google search I found a wee snippet of bash script to do the job for me. Presenting dir2lowercase:</p>
<blockquote><p>#!/bin/bash<br />
# Script to convert all the files in the current directory to lowercase<br />
# Code taken from http://webxadmin.free.fr/article/shell-rename-all-files-in-subdirectories-to-lowe-135.php</p>
<p>for f in *; do<br />
g=`expr &#8220;xxx$f&#8221; : &#8216;xxx\(.*\)&#8217; | tr &#8216;[A-Z]&#8216; &#8216;[a-z]&#8216;`<br />
mv &#8220;$f&#8221; &#8220;$g&#8221;<br />
done</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://kevinisageek.org/2008/04/16/i-love-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
