<?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: 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>
	<pubDate>Wed, 03 Dec 2008 21:57:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Claudio Procida</title>
		<link>http://www.franzone.com/2007/09/05/bash-script-to-change-file-extensions/#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've saved my day.
I've adapted your script to 'svn mv' files by changing extension.
Honestly, I didn'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-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's -iregex option, which uses regular expressions to find the files.

&lt;code&gt;find "${1}" -regextype "posix-extended" -iregex ".*.(psd&#124;tif&#124;jpg)"&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-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'm tying it in with some "sips" 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>

<!-- Dynamic Page Served (once) in 0.258 seconds -->
