<?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: Mass Renaming Directories And Files Using Total Commander</title> <atom:link href="http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Sat, 11 Feb 2012 17:00:25 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Tom</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-52294</link> <dc:creator>Tom</dc:creator> <pubDate>Wed, 14 Dec 2011 21:34:43 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-52294</guid> <description>I guess Total Commander can&#039;t handle this.
I&#039;ll need to look for a more powerful tool.</description> <content:encoded><![CDATA[<p>I guess Total Commander can&#039;t handle this.</p><p>I&#039;ll need to look for a more powerful tool.</p> ]]></content:encoded> </item> <item><title>By: Tom</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-52270</link> <dc:creator>Tom</dc:creator> <pubDate>Sun, 04 Dec 2011 19:41:50 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-52270</guid> <description>I should say that I am perhaps not as incompetent as I presented myself. I have used regex in the past, and it is more or less clear how to change file names, but it is not clear how to change empty directories.
Also, I can modify my task to make it somewhat easier - I can rename all directories....
BLU Blank month/BLU translation/BLU RU/BLU word/BLU clean
GRN Blank month/GRN translation/GRN RU/GRN word/GRN clean</description> <content:encoded><![CDATA[<p>I should say that I am perhaps not as incompetent as I presented myself. I have used regex in the past, and it is more or less clear how to change file names, but it is not clear how to change empty directories.</p><p>Also, I can modify my task to make it somewhat easier &#8211; I can rename all directories&#8230;.</p><p>BLU Blank month/BLU translation/BLU RU/BLU word/BLU clean<br
/> GRN Blank month/GRN translation/GRN RU/GRN word/GRN clean</p> ]]></content:encoded> </item> <item><title>By: Artem Russakovskii</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-52269</link> <dc:creator>Artem Russakovskii</dc:creator> <pubDate>Sun, 04 Dec 2011 17:13:43 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-52269</guid> <description>&lt;p&gt;In your case, indeed such a substitution would need to be applied multiple times, because matches in that regex can&#039;t cross characters.&lt;/p&gt;
&lt;p&gt;There is a way to solve it using advanced regex with the use of positive lookbehinds and lookaheads, and I verified it works, but TC doesn&#039;t seem to support them.&lt;/p&gt;
&lt;p&gt;This is the right way to do this if it did.&lt;/p&gt;
&lt;p&gt;Search for:&lt;br /&gt;
&lt;pre line=&quot;0&quot;&gt;
(?&lt;=\d) (?=\d)
&lt;/pre&gt;
&lt;p&gt;Replace with:&lt;br /&gt;
&lt;pre line=&quot;0&quot;&gt;
.&lt;br /&gt;
&lt;/pre&gt;
More info about positive lookaheads and lookbehinds: http://www.regular-expressions.info/lookaround.html</description> <content:encoded><![CDATA[<p>In your case, indeed such a substitution would need to be applied multiple times, because matches in that regex can&#039;t cross characters.</p><p>There is a way to solve it using advanced regex with the use of positive lookbehinds and lookaheads, and I verified it works, but TC doesn&#039;t seem to support them.</p><p>This is the right way to do this if it did.</p><p>Search for:</p><div
class="wp_syntax"><div
class="code"><pre>(?&lt;=\d) (?=\d)</pre></div></div><p>Replace with:</p><div
class="wp_syntax"><div
class="code"><pre>.</pre></div></div><p>More info about positive lookaheads and lookbehinds: <a
href="http://www.regular-expressions.info/lookaround.html" rel="nofollow">http://www.regular-expressions.info/lookaround.html</a></p> ]]></content:encoded> </item> <item><title>By: Sreve G</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-52268</link> <dc:creator>Sreve G</dc:creator> <pubDate>Sun, 04 Dec 2011 13:06:41 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-52268</guid> <description>I am trying to find the pattern in a file name of &quot;digit digit&quot; (ie User manual v2 9 878 2011.pdf) and renaming it to User Manual v2.9.878 2011.pdf.
I am finding all these files using the
([0-9]) ([0-9]) and expecting to rename them using the &gt;  $1.$2 function, which is fine for the first pattern matched in my example but not for subsequent matches in the same name.
I can run it multiple times but guessing there is a better way:&gt;
Brilliant stuff here, and thanks in advance
Steve</description> <content:encoded><![CDATA[<p>I am trying to find the pattern in a file name of &#034;digit digit&#034; (ie User manual v2 9 878 2011.pdf) and renaming it to User Manual v2.9.878 2011.pdf.<br
/> I am finding all these files using the<br
/> ([0-9]) ([0-9]) and expecting to rename them using the &gt;  $1.$2 function, which is fine for the first pattern matched in my example but not for subsequent matches in the same name.<br
/> I can run it multiple times but guessing there is a better way:&gt;<br
/> Brilliant stuff here, and thanks in advance<br
/> Steve</p> ]]></content:encoded> </item> <item><title>By: Tom</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-52266</link> <dc:creator>Tom</dc:creator> <pubDate>Sun, 04 Dec 2011 03:01:40 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-52266</guid> <description>Hi Artem,
I have a pretty easy one for you (but I can&#039;t figure it out).
I have a set of directories I use as a template/container for job files.  (about 130 directories) they are empty. and have varying lengths: e.g.
Blank month/translation/RU/word/clean
Blank month/translation/EN/send
I want to have several sets
Blank month/RED translation/RU/word/RED clean
Blank month/BLUE translation/RU/word/BLU clean
Blank month/GRN translation/RU/word/GRN clean
Blank month/RED translation/EN/RED send
Blank month/BLU translation/EN/BLU send
Blank month/GRN translation/EN/GRN send
Possible?  Pomogi chainiku!
Best,
Tom</description> <content:encoded><![CDATA[<p>Hi Artem,</p><p>I have a pretty easy one for you (but I can&#039;t figure it out).</p><p>I have a set of directories I use as a template/container for job files.  (about 130 directories) they are empty. and have varying lengths: e.g.</p><p>Blank month/translation/RU/word/clean<br
/> Blank month/translation/EN/send</p><p>I want to have several sets</p><p>Blank month/RED translation/RU/word/RED clean<br
/> Blank month/BLUE translation/RU/word/BLU clean<br
/> Blank month/GRN translation/RU/word/GRN clean</p><p>Blank month/RED translation/EN/RED send<br
/> Blank month/BLU translation/EN/BLU send<br
/> Blank month/GRN translation/EN/GRN send</p><p>Possible?  Pomogi chainiku!</p><p>Best,</p><p>Tom</p> ]]></content:encoded> </item> <item><title>By: Artem Russakovskii</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-52025</link> <dc:creator>Artem Russakovskii</dc:creator> <pubDate>Mon, 12 Sep 2011 01:02:56 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-52025</guid> <description>Afraid you can&#039;t do that without a script.</description> <content:encoded><![CDATA[<p>Afraid you can&#039;t do that without a script.</p> ]]></content:encoded> </item> <item><title>By: Eugene</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-52024</link> <dc:creator>Eugene</dc:creator> <pubDate>Mon, 12 Sep 2011 00:56:37 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-52024</guid> <description>What if I have a list of files that is numbered
fliename0001
filename0056
filename0999
filename1100
And I want the numbers in each filename to decrease by 1?
Thanks</description> <content:encoded><![CDATA[<p>What if I have a list of files that is numbered</p><p>fliename0001<br
/> filename0056<br
/> filename0999<br
/> filename1100</p><p>And I want the numbers in each filename to decrease by 1?<br
/> Thanks</p> ]]></content:encoded> </item> <item><title>By: jan</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51309</link> <dc:creator>jan</dc:creator> <pubDate>Fri, 14 Jan 2011 15:34:35 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51309</guid> <description>One important note. The power of regular expressions is small comparing to universal (normal) programing language. So no surprise that sometimes it is not possible tu use it. One not useful example is renaming file if the name is a number and prime. It is not possible and it is not difficult to prove it.</description> <content:encoded><![CDATA[<p>One important note. The power of regular expressions is small comparing to universal (normal) programing language. So no surprise that sometimes it is not possible tu use it. One not useful example is renaming file if the name is a number and prime. It is not possible and it is not difficult to prove it.</p> ]]></content:encoded> </item> <item><title>By: Artem Russakovskii</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51268</link> <dc:creator>Artem Russakovskii</dc:creator> <pubDate>Sat, 01 Jan 2011 01:57:47 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51268</guid> <description>Hey, thanks John, very nice of you! Happy New Year!</description> <content:encoded><![CDATA[<p>Hey, thanks John, very nice of you! Happy New Year!</p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51267</link> <dc:creator>John</dc:creator> <pubDate>Sat, 01 Jan 2011 01:26:08 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51267</guid> <description>Hey Artem, just wanted stop by and wish you a happy new year.  Thanks for all your help!  Cheers.</description> <content:encoded><![CDATA[<p>Hey Artem, just wanted stop by and wish you a happy new year.  Thanks for all your help!  Cheers.</p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51261</link> <dc:creator>John</dc:creator> <pubDate>Wed, 29 Dec 2010 14:37:02 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51261</guid> <description>Artem, just a little feedback.  It works great except for in one instance, I had a song title:
1999.mp3
The regexp code you gave me wiped out the entire name.  Luckily I caught it in the preview before making the change.  Thanks for providing the code.</description> <content:encoded><![CDATA[<p>Artem, just a little feedback.  It works great except for in one instance, I had a song title:<br
/> 1999.mp3</p><p>The regexp code you gave me wiped out the entire name.  Luckily I caught it in the preview before making the change.  Thanks for providing the code.</p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51260</link> <dc:creator>John</dc:creator> <pubDate>Wed, 29 Dec 2010 12:56:25 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51260</guid> <description>Oh fantastic.  I&#039;ll give it a try this week and report back.  Thanks Artem.</description> <content:encoded><![CDATA[<p>Oh fantastic.  I&#039;ll give it a try this week and report back.  Thanks Artem.</p> ]]></content:encoded> </item> <item><title>By: Artem Russakovskii</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51255</link> <dc:creator>Artem Russakovskii</dc:creator> <pubDate>Sun, 26 Dec 2010 04:10:41 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51255</guid> <description>&lt;p&gt;John, I was finally able to get the regex you were looking for:&lt;pre line=&quot;0&quot;&gt;
Search for: ^\d+\s*[\-\._]*\s*
Replace with: &lt;Clear&gt;
RegEx: checked
&lt;/pre&gt;&lt;/p&gt; </description> <content:encoded><![CDATA[<p>John, I was finally able to get the regex you were looking for:</p><div
class="wp_syntax"><div
class="code"><pre>Search for: ^\d+\s*[\-\._]*\s*
Replace with: &lt;Clear&gt;
RegEx: checked</pre></div></div> ]]></content:encoded> </item> <item><title>By: Goran</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51237</link> <dc:creator>Goran</dc:creator> <pubDate>Thu, 16 Dec 2010 09:48:03 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51237</guid> <description>Artem, realy great tips you have here. I&#039;ve been looking for this on official TCM site for some time. The trick with Parent and Grandparent saved me quite time.
Pitty Counter reseting doesn&#039;t work...
Cheers!</description> <content:encoded><![CDATA[<p>Artem, realy great tips you have here. I&#039;ve been looking for this on official TCM site for some time. The trick with Parent and Grandparent saved me quite time.</p><p>Pitty Counter reseting doesn&#039;t work&#8230;</p><p>Cheers!</p> ]]></content:encoded> </item> <item><title>By: Artem Russakovskii</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51235</link> <dc:creator>Artem Russakovskii</dc:creator> <pubDate>Wed, 15 Dec 2010 23:24:46 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51235</guid> <description>John, unfortunately, not yet. It&#039;s still sitting in a pile of construction dust :)</description> <content:encoded><![CDATA[<p>John, unfortunately, not yet. It&#039;s still sitting in a pile of construction dust <img
src='http://beerpla.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51234</link> <dc:creator>John</dc:creator> <pubDate>Wed, 15 Dec 2010 23:16:08 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51234</guid> <description>Artem,
Just curious to know if you&#039;ve had a chance to power on your PC again.  I&#039;m really looking forward to the reg exp you wrote.</description> <content:encoded><![CDATA[<p>Artem,</p><p>Just curious to know if you&#039;ve had a chance to power on your PC again.  I&#039;m really looking forward to the reg exp you wrote.</p> ]]></content:encoded> </item> <item><title>By: Artem Russakovskii</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51178</link> <dc:creator>Artem Russakovskii</dc:creator> <pubDate>Thu, 02 Dec 2010 16:39:57 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51178</guid> <description>John, I actually had to do exactly the same and wrote up a regex for it. I&#039;m having some remodeling done right now, so my desktop is off, but once I turn it back on, I&#039;ll post it up.
Btw, you don&#039;t want to delete all numbers - usually just the first one, because that number could be part of the song&#039;s name.</description> <content:encoded><![CDATA[<p>John, I actually had to do exactly the same and wrote up a regex for it. I&#039;m having some remodeling done right now, so my desktop is off, but once I turn it back on, I&#039;ll post it up.<br
/> Btw, you don&#039;t want to delete all numbers &#8211; usually just the first one, because that number could be part of the song&#039;s name.</p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51176</link> <dc:creator>John</dc:creator> <pubDate>Thu, 02 Dec 2010 10:02:31 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51176</guid> <description>Artem, you&#039;ve got some great information here.  I just discovered Total Commander and I think it&#039;s going to make my life much easier now.  I have a quick question for you if you don&#039;t mind.  I&#039;ve got several thousands of songs in my MP3 collection.  Many of them have a number in front of the filename.  For example.
01 Knowing What I Know Now.mp3
02 Ice Cream.mp3
05 Ricochet in Time.mp3
The only problem is that there are variations in the numbering.  So some of the others are like thus:
01 - Cry Like an Angel.mp3
02-Love Came Down At Christmas.mp3
03_Mystery.mp3
04 20 Balloons.mp3
I looked on the Regex tutorial website you pointed out, but I cannot figure out how to rename the files in the manner I&#039;m looking for.  If I use the following regexp:  ^d{2}
It does not produce the results I&#039;m looking for because of the variations in the numbers in the front of the filename.
Is there some type of regexp that can disregard the first two digits in the filename, if the 3rd is a space, or a dash or a underscore, then move on to the next character until you run into an actual letter or another number?
Basically, I want the final result to look like:
Cry Like an Angel.mp3
Love Came Down At Christmas.mp3
Mystery.mp3
20 Balloons.mp3
I&#039;m completely stumped.  Any help would be appreciated.</description> <content:encoded><![CDATA[<p>Artem, you&#039;ve got some great information here.  I just discovered Total Commander and I think it&#039;s going to make my life much easier now.  I have a quick question for you if you don&#039;t mind.  I&#039;ve got several thousands of songs in my MP3 collection.  Many of them have a number in front of the filename.  For example.<br
/> 01 Knowing What I Know Now.mp3<br
/> 02 Ice Cream.mp3<br
/> 05 Ricochet in Time.mp3<br
/> The only problem is that there are variations in the numbering.  So some of the others are like thus:<br
/> 01 &#8211; Cry Like an Angel.mp3<br
/> 02-Love Came Down At Christmas.mp3<br
/> 03_Mystery.mp3<br
/> 04 20 Balloons.mp3<br
/> I looked on the Regex tutorial website you pointed out, but I cannot figure out how to rename the files in the manner I&#039;m looking for.  If I use the following regexp:  ^d{2}<br
/> It does not produce the results I&#039;m looking for because of the variations in the numbers in the front of the filename.<br
/> Is there some type of regexp that can disregard the first two digits in the filename, if the 3rd is a space, or a dash or a underscore, then move on to the next character until you run into an actual letter or another number?</p><p>Basically, I want the final result to look like:</p><p>Cry Like an Angel.mp3<br
/> Love Came Down At Christmas.mp3<br
/> Mystery.mp3<br
/> 20 Balloons.mp3</p><p>I&#039;m completely stumped.  Any help would be appreciated.</p> ]]></content:encoded> </item> <item><title>By: Artem Russakovskii</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51140</link> <dc:creator>Artem Russakovskii</dc:creator> <pubDate>Tue, 16 Nov 2010 11:37:34 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51140</guid> <description>Teris, you can start by Googling or reading a Regex book. Here&#039;s a good place to start as well: http://www.regular-expressions.info/</description> <content:encoded><![CDATA[<p>Teris, you can start by Googling or reading a Regex book. Here&#039;s a good place to start as well: <a
href="http://www.regular-expressions.info/" rel="nofollow">http://www.regular-expressions.info/</a></p> ]]></content:encoded> </item> <item><title>By: Teris</title><link>http://beerpla.net/2008/03/12/mass-renaming-directories-and-files-using-total-commander/#comment-51139</link> <dc:creator>Teris</dc:creator> <pubDate>Tue, 16 Nov 2010 11:24:11 +0000</pubDate> <guid
isPermaLink="false">http://beerpla.net/2008/03/11/mass-renaming-directories-and-files-using-total-commander/#comment-51139</guid> <description>thank you Artem,
where can I read about how Regex works?</description> <content:encoded><![CDATA[<p>thank you Artem,<br
/> where can I read about how Regex works?</p> ]]></content:encoded> </item> </channel> </rss>
