<?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: Rename multiple files to another extension in Linux</title>
	<atom:link href="http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:01:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Octavian Neamtu</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-8111</link>
		<dc:creator>Octavian Neamtu</dc:creator>
		<pubDate>Mon, 31 Jan 2011 22:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-8111</guid>
		<description>very useful thanks!</description>
		<content:encoded><![CDATA[<p>very useful thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jigna</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-8030</link>
		<dc:creator>jigna</dc:creator>
		<pubDate>Fri, 21 Jan 2011 11:59:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-8030</guid>
		<description>i want all extension of open office in linux operting system...?</description>
		<content:encoded><![CDATA[<p>i want all extension of open office in linux operting system&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e.m.fields</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-5789</link>
		<dc:creator>e.m.fields</dc:creator>
		<pubDate>Sat, 04 Sep 2010 10:48:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-5789</guid>
		<description>sorry to raise a dead thread, if anyone cares, but I&#039;ve got a stumper for ya. 

How would you do a batch rename of a directory full of files some of which contain spaces in their names?

for example:

file 1.jpeg
file 2.png
file 3 and extra wording.jpeg
completely-arbitrary-filename without extension

to:
file 1.TXT
file 2.TXT
file 3 and extra wording.TXT
completely-arbitrary-filename without extension.TXT

(And yes, I know this is a silly example, but it&#039;s for a RL-practical use.)

Thanks!
-e.m.fields
chapel hill, nc</description>
		<content:encoded><![CDATA[<p>sorry to raise a dead thread, if anyone cares, but I&#8217;ve got a stumper for ya. </p>
<p>How would you do a batch rename of a directory full of files some of which contain spaces in their names?</p>
<p>for example:</p>
<p>file 1.jpeg<br />
file 2.png<br />
file 3 and extra wording.jpeg<br />
completely-arbitrary-filename without extension</p>
<p>to:<br />
file 1.TXT<br />
file 2.TXT<br />
file 3 and extra wording.TXT<br />
completely-arbitrary-filename without extension.TXT</p>
<p>(And yes, I know this is a silly example, but it&#8217;s for a RL-practical use.)</p>
<p>Thanks!<br />
-e.m.fields<br />
chapel hill, nc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-5417</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Fri, 30 Jul 2010 07:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-5417</guid>
		<description>how would you keep the extension but append -xyz to the basename?
for example, i want to copy all files in dir a and append -xyz the end of the name while keeping the extension to dir b.</description>
		<content:encoded><![CDATA[<p>how would you keep the extension but append -xyz to the basename?<br />
for example, i want to copy all files in dir a and append -xyz the end of the name while keeping the extension to dir b.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-3258</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Mon, 22 Jun 2009 16:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-3258</guid>
		<description>Vincent,

for old in *; do mv $old `basename $old`.zip; done


* = all files, you can change that though. like FILE*</description>
		<content:encoded><![CDATA[<p>Vincent,</p>
<p>for old in *; do mv $old `basename $old`.zip; done</p>
<p>* = all files, you can change that though. like FILE*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-3202</link>
		<dc:creator>Vincent</dc:creator>
		<pubDate>Sun, 14 Jun 2009 17:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-3202</guid>
		<description>What all those commands do not cover is to add an extension to a file that has none.
How would that work?</description>
		<content:encoded><![CDATA[<p>What all those commands do not cover is to add an extension to a file that has none.<br />
How would that work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fagner</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-2173</link>
		<dc:creator>Fagner</dc:creator>
		<pubDate>Wed, 07 Jan 2009 23:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-2173</guid>
		<description>Good job!</description>
		<content:encoded><![CDATA[<p>Good job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zodak</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-1838</link>
		<dc:creator>Zodak</dc:creator>
		<pubDate>Sun, 19 Aug 2007 22:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-1838</guid>
		<description>The same can be done using the parameter expansion feature of the bash shell.

for a in *php5 ; do mv $a ${a%%5} ; done</description>
		<content:encoded><![CDATA[<p>The same can be done using the parameter expansion feature of the bash shell.</p>
<p>for a in *php5 ; do mv $a ${a%%5} ; done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hron84</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-1837</link>
		<dc:creator>hron84</dc:creator>
		<pubDate>Sun, 19 Aug 2007 08:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-1837</guid>
		<description>And this can be usede too:

#!/bin/bash
for x in *.php5; do n=${x/.php5/.php}; mv $x $n; done

And it&#039;s can be used in other dir than &#039;.&#039;</description>
		<content:encoded><![CDATA[<p>And this can be usede too:</p>
<p>#!/bin/bash<br />
for x in *.php5; do n=${x/.php5/.php}; mv $x $n; done</p>
<p>And it&#8217;s can be used in other dir than &#8216;.&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Geisert</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-1836</link>
		<dc:creator>Christian Geisert</dc:creator>
		<pubDate>Mon, 13 Aug 2007 02:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-1836</guid>
		<description>And I&#039;m using &#039;mmv&#039; ;-)</description>
		<content:encoded><![CDATA[<p>And I&#8217;m using &#8216;mmv&#8217; <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-1835</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sun, 12 Aug 2007 19:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-1835</guid>
		<description>You can also use the &#039;rename&#039; command included with most debian installs. It&#039;s a little more intuitive, imho.

$ rename
Usage: rename [-v] [-n] [-f] perlexpr [filenames]

$ rename &#039;s/\.php5/.php/&#039; *.php5</description>
		<content:encoded><![CDATA[<p>You can also use the &#8216;rename&#8217; command included with most debian installs. It&#8217;s a little more intuitive, imho.</p>
<p>$ rename<br />
Usage: rename [-v] [-n] [-f] perlexpr [filenames]</p>
<p>$ rename &#8216;s/\.php5/.php/&#8217; *.php5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jds</title>
		<link>http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html/comment-page-1#comment-1834</link>
		<dc:creator>jds</dc:creator>
		<pubDate>Sun, 12 Aug 2007 19:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/rename-multiple-files-to-another-extension-in-linux.html#comment-1834</guid>
		<description>ich mag prename lieber ...</description>
		<content:encoded><![CDATA[<p>ich mag prename lieber &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

