<?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: Bash Script To Change File Extensions</title>
	<atom:link href="http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/</link>
	<description>thoughts of a web geek</description>
	<lastBuildDate>Tue, 09 Mar 2010 08:53:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jonathan Franzone</title>
		<link>http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/comment-page-1/#comment-4264</link>
		<dc:creator>Jonathan Franzone</dc:creator>
		<pubDate>Mon, 05 Jan 2009 02:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/#comment-4264</guid>
		<description>lol - Well, certainly I&#039;m not saying that there is a &quot;need&quot; for Cygwin in Windows, per se. However, I personally am more comfortable in *nix land as far as the command prompt goes. Does Windows have a built regular expression parser (ie Sed)? Nope.

So basically it comes down to preference. If you like doing things the Windows way then that&#039;s great. If you like Linux/Unix then you can have that too! Thanks for taking the time to comment.</description>
		<content:encoded><![CDATA[<p>lol &#8211; Well, certainly I&#8217;m not saying that there is a &#8220;need&#8221; for Cygwin in Windows, per se. However, I personally am more comfortable in *nix land as far as the command prompt goes. Does Windows have a built regular expression parser (ie Sed)? Nope.</p>
<p>So basically it comes down to preference. If you like doing things the Windows way then that&#8217;s great. If you like Linux/Unix then you can have that too! Thanks for taking the time to comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian D</title>
		<link>http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/comment-page-1/#comment-4263</link>
		<dc:creator>Brian D</dc:creator>
		<pubDate>Sun, 04 Jan 2009 23:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/#comment-4263</guid>
		<description>In windows there&#039;s no need for Cygwin, this is one of the extremely rare occasions that cmd.exe can actually do something well:

move *.old *.new

Works with copy as well.</description>
		<content:encoded><![CDATA[<p>In windows there&#8217;s no need for Cygwin, this is one of the extremely rare occasions that cmd.exe can actually do something well:</p>
<p>move *.old *.new</p>
<p>Works with copy as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudio Procida</title>
		<link>http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/comment-page-1/#comment-3827</link>
		<dc:creator>Claudio Procida</dc:creator>
		<pubDate>Mon, 05 May 2008 20:06:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/#comment-3827</guid>
		<description>Thanks Jonathan, you&#039;ve saved my day.
I&#039;ve adapted your script to &#039;svn mv&#039; files by changing extension.
Honestly, I didn&#039;t know the /# /% syntax inside brackets!</description>
		<content:encoded><![CDATA[<p>Thanks Jonathan, you&#8217;ve saved my day.<br />
I&#8217;ve adapted your script to &#8217;svn mv&#8217; files by changing extension.<br />
Honestly, I didn&#8217;t know the /# /% syntax inside brackets!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Franzone</title>
		<link>http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/comment-page-1/#comment-1658</link>
		<dc:creator>Jonathan Franzone</dc:creator>
		<pubDate>Fri, 14 Sep 2007 15:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/#comment-1658</guid>
		<description>Bash is very powerful and you can basically tell it to do whatever you want... so sure!

You could try playing with the find syntax. I was able to get find to get a listing of files with it&#039;s -iregex option, which uses regular expressions to find the files.

&lt;code&gt;find &quot;${1}&quot; -regextype &quot;posix-extended&quot; -iregex &quot;.*.(psd&#124;tif&#124;jpg)&quot;&lt;/code&gt;

You could hard code the extensions in your find statement or you could pass them in on the command line if you liked.</description>
		<content:encoded><![CDATA[<p>Bash is very powerful and you can basically tell it to do whatever you want&#8230; so sure!</p>
<p>You could try playing with the find syntax. I was able to get find to get a listing of files with it&#8217;s -iregex option, which uses regular expressions to find the files.</p>
<p><code>find "${1}" -regextype "posix-extended" -iregex ".*.(psd|tif|jpg)"</code></p>
<p>You could hard code the extensions in your find statement or you could pass them in on the command line if you liked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben R</title>
		<link>http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/comment-page-1/#comment-1657</link>
		<dc:creator>Ben R</dc:creator>
		<pubDate>Fri, 14 Sep 2007 15:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/#comment-1657</guid>
		<description>Thanks for that, Jonathan

Is there a simple way to adapt the script to accept multiple incoming extensions all at once (say, psd, tif, jpg)

I&#039;m tying it in with some &quot;sips&quot; usgae on OS X to batch convert entire directory trees to small jpegs. 

Thanks, Ben</description>
		<content:encoded><![CDATA[<p>Thanks for that, Jonathan</p>
<p>Is there a simple way to adapt the script to accept multiple incoming extensions all at once (say, psd, tif, jpg)</p>
<p>I&#8217;m tying it in with some &#8220;sips&#8221; usgae on OS X to batch convert entire directory trees to small jpegs. </p>
<p>Thanks, Ben</p>
]]></content:encoded>
	</item>
</channel>
</rss>
