<?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: Rename Files in Bulk from the Command Line</title>
	<atom:link href="http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/</link>
	<description>For savvy admins everywhere...</description>
	<pubDate>Wed, 07 Jan 2009 10:36:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Bookmarks about Tutorial</title>
		<link>http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/#comment-162</link>
		<dc:creator>Bookmarks about Tutorial</dc:creator>
		<pubDate>Sat, 09 Aug 2008 11:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/?p=59#comment-162</guid>
		<description>[...] - bookmarked by 3 members originally found by makenshi on 2008-07-18  Rename Files in Bulk from the Command Line  http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/ - bookmarked by 4 members [...]</description>
		<content:encoded><![CDATA[<p>[...] - bookmarked by 3 members originally found by makenshi on 2008-07-18  Rename Files in Bulk from the Command Line  <a href="http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/" rel="nofollow">http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/</a> - bookmarked by 4 members [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/#comment-152</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Tue, 29 Jul 2008 04:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/?p=59#comment-152</guid>
		<description>Ah. I see. I manually renamed the first 300 files and then got sick of it and found your blog. i think i get the general idea, though i'm trying to figure out the syntax of all the elements. Thank you very much. This will be very helpful in the future.</description>
		<content:encoded><![CDATA[<p>Ah. I see. I manually renamed the first 300 files and then got sick of it and found your blog. i think i get the general idea, though i&#8217;m trying to figure out the syntax of all the elements. Thank you very much. This will be very helpful in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gmendoza</title>
		<link>http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/#comment-151</link>
		<dc:creator>gmendoza</dc:creator>
		<pubDate>Tue, 29 Jul 2008 00:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/?p=59#comment-151</guid>
		<description>Ack!  wait up. You have a space in front of your search and replace... which is why nothing is happening.  But you also risk deleting the wrong part of your file names.

’s/ Discogs.url//’ will end up deleting anything that matches " Discogs.url".  That will leave you with a file name of just ".url".  hehe.

You probably want the following:

&lt;pre&gt;cd /media/sdb1/Music/mp3/electronic
find . -type f -name Discogs.url.url -exec rename ’s/Discogs.url/Discogs/’ ‘{}’ \;&lt;/pre&gt;

This will change the "Discogs.url" to simply "Discogs", making the new full file name "Discogs.url"</description>
		<content:encoded><![CDATA[<p>Ack!  wait up. You have a space in front of your search and replace&#8230; which is why nothing is happening.  But you also risk deleting the wrong part of your file names.</p>
<p>’s/ Discogs.url//’ will end up deleting anything that matches &#8221; Discogs.url&#8221;.  That will leave you with a file name of just &#8220;.url&#8221;.  hehe.</p>
<p>You probably want the following:</p>
<pre>cd /media/sdb1/Music/mp3/electronic
find . -type f -name Discogs.url.url -exec rename ’s/Discogs.url/Discogs/’ ‘{}’ \;</pre>
<p>This will change the &#8220;Discogs.url&#8221; to simply &#8220;Discogs&#8221;, making the new full file name &#8220;Discogs.url&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/#comment-149</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Mon, 28 Jul 2008 19:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/?p=59#comment-149</guid>
		<description>Hm okay... i noticed a few problems above. However, this is my new command and it doesn't do anything

find /media/sdb1/Music/mp3/electronic* -type f -name Discogs.url.url -exec rename 's/ Discogs.url//' '{}' \;

see, i want to take all the Discogs.url.url files in the directory electronic and rename them to Discogs.url

Thanks.</description>
		<content:encoded><![CDATA[<p>Hm okay&#8230; i noticed a few problems above. However, this is my new command and it doesn&#8217;t do anything</p>
<p>find /media/sdb1/Music/mp3/electronic* -type f -name Discogs.url.url -exec rename &#8217;s/ Discogs.url//&#8217; &#8216;{}&#8217; \;</p>
<p>see, i want to take all the Discogs.url.url files in the directory electronic and rename them to Discogs.url</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.savvyadmin.com/rename-files-in-bulk-from-the-command-line/#comment-148</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Mon, 28 Jul 2008 19:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/?p=59#comment-148</guid>
		<description>I'm trying to do this, I have "Discogs.url.url" files in about 600 different directories and I want to drop the last ".url". Here's the syntax I used and the message I get

/media/sdb1/Music/mp3/electronic$ 

find . -type f -name Discogs.url.url -exec rename 's/ Discogs.url//' '{}' ;

find: missing argument to `-exec'

Can you perhaps tell me what I did wrong?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to do this, I have &#8220;Discogs.url.url&#8221; files in about 600 different directories and I want to drop the last &#8220;.url&#8221;. Here&#8217;s the syntax I used and the message I get</p>
<p>/media/sdb1/Music/mp3/electronic$ </p>
<p>find . -type f -name Discogs.url.url -exec rename &#8217;s/ Discogs.url//&#8217; &#8216;{}&#8217; ;</p>
<p>find: missing argument to `-exec&#8217;</p>
<p>Can you perhaps tell me what I did wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
