<?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"
	>
<channel>
	<title>Comments on: Mass Rename File Extensions</title>
	<atom:link href="http://macdevelopertips.com/tools-utilities/mass-rename-file-extensions.html/feed" rel="self" type="application/rss+xml" />
	<link>http://MacDeveloperTips.com/tools-utilities/mass-rename-file-extensions.html</link>
	<description>Tips, tools and code for iPhone and Mac developers.</description>
	<pubDate>Sun, 06 Jul 2008 23:34:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: peter honeyman</title>
		<link>http://MacDeveloperTips.com/tools-utilities/mass-rename-file-extensions.html#comment-279</link>
		<dc:creator>peter honeyman</dc:creator>
		<pubDate>Mon, 09 Jun 2008 14:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://macdevelopertips.com/tools-utilities/mass-rename-file-extensions.html#comment-279</guid>
		<description>this is not worth a shell script -- just type it in by hand

for i in *.txt; do mv $i `basename $i .txt`".xml;done

of course, that doesn't handle spaces right, so fix up the rest

for i in *.txt; do base=`basename "$i" .txt`; mv "$i" "$base".xml;done

-- peter</description>
		<content:encoded><![CDATA[<p>this is not worth a shell script &#8212; just type it in by hand</p>
<p>for i in *.txt; do mv $i `basename $i .txt`&#8221;.xml;done</p>
<p>of course, that doesn&#8217;t handle spaces right, so fix up the rest</p>
<p>for i in *.txt; do base=`basename &#8220;$i&#8221; .txt`; mv &#8220;$i&#8221; &#8220;$base&#8221;.xml;done</p>
<p>&#8211; peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Everson Santos Araujo</title>
		<link>http://MacDeveloperTips.com/tools-utilities/mass-rename-file-extensions.html#comment-192</link>
		<dc:creator>Everson Santos Araujo</dc:creator>
		<pubDate>Thu, 22 May 2008 14:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://macdevelopertips.com/tools-utilities/mass-rename-file-extensions.html#comment-192</guid>
		<description>To work with spaces, put " in line 28, so it will be:

mv "$filename" "${filename%$1}$2"</description>
		<content:encoded><![CDATA[<p>To work with spaces, put &#8221; in line 28, so it will be:</p>
<p>mv &#8220;$filename&#8221; &#8220;${filename%$1}$2&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://MacDeveloperTips.com/tools-utilities/mass-rename-file-extensions.html#comment-177</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 18 May 2008 22:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://macdevelopertips.com/tools-utilities/mass-rename-file-extensions.html#comment-177</guid>
		<description>This doesn't work if there are spaces in the file names, like in music</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t work if there are spaces in the file names, like in music</p>
]]></content:encoded>
	</item>
</channel>
</rss>
