<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Lowercase Filenames with Bash on Mac OS X</title>
	<atom:link href="http://robertvenema.nl/journal/archive/lowercase-filenames-with-bash-on-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertvenema.nl/journal/archive/lowercase-filenames-with-bash-on-mac-os-x/</link>
	<description>Your weekly dose from dutchland *^_~*</description>
	<lastBuildDate>Thu, 03 Nov 2011 05:09:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Sérgio Luiz Araújo Silva</title>
		<link>http://robertvenema.nl/journal/archive/lowercase-filenames-with-bash-on-mac-os-x/comment-page-1/#comment-28661</link>
		<dc:creator>Sérgio Luiz Araújo Silva</dc:creator>
		<pubDate>Wed, 14 Jul 2010 13:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertvenema.nl/?p=133#comment-28661</guid>
		<description>To convert any var to lower...

&lt;pre&gt;&lt;code&gt;var=${var,,}&lt;/code&gt;&lt;/pre&gt;

see man bash :)

&lt;pre&gt;&lt;code&gt;#!/bin/sh

if [ -n &quot;$1&quot; ]; then
  let count=0
  while [ &quot;$1&quot; ]; do
    f=&quot;$1&quot;
    shift
    if [ -f &quot;$f&quot; ]; then
      lc=${f,,}
      if [ &quot;$lc&quot; != &quot;$f&quot; ]; then
        mv &quot;$f&quot; &quot;$lc&quot;
        ((count++))
      fi
    fi
  done
  echo &quot;Result: $count files have been changed.&quot;
else
  echo &quot;Usage: lowerit file(s)&quot;
fi&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>To convert any var to lower&#8230;</p>
<pre><code>var=${var,,}</code></pre>
<p>see man bash :)</p>
<pre><code>#!/bin/sh

if [ -n "$1" ]; then
  let count=0
  while [ "$1" ]; do
    f="$1"
    shift
    if [ -f "$f" ]; then
      lc=${f,,}
      if [ "$lc" != "$f" ]; then
        mv "$f" "$lc"
        ((count++))
      fi
    fi
  done
  echo "Result: $count files have been changed."
else
  echo "Usage: lowerit file(s)"
fi</code></pre>
]]></content:encoded>
	</item>
</channel>
</rss>

