<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Replace Space With Underscore in Filename</title>
	<atom:link href="http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/feed/" rel="self" type="application/rss+xml" />
	<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/</link>
	<description>just a little brain</description>
	<lastBuildDate>Fri, 27 Jan 2012 09:05:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Guest</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-887</link>
		<dc:creator><![CDATA[Guest]]></dc:creator>
		<pubDate>Mon, 15 Aug 2011 16:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-887</guid>
		<description><![CDATA[Thanks for the code snippet. I had to alter it, because as is it will rewrite all files in a directory regardless if they have spaces or not. This includes hidden files, which can be dangerous. I just filtered for f[0] != &#039;.&#039; and &#039; &#039; in f. ]]></description>
		<content:encoded><![CDATA[<p>Thanks for the code snippet. I had to alter it, because as is it will rewrite all files in a directory regardless if they have spaces or not. This includes hidden files, which can be dangerous. I just filtered for f[0] != &#8216;.&#8217; and &#8216; &#8216; in f. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guest</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-886</link>
		<dc:creator><![CDATA[Guest]]></dc:creator>
		<pubDate>Mon, 15 Aug 2011 16:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-886</guid>
		<description><![CDATA[Thanks for the code snippet. I had to alter it, because as is it will rewrite all files in a directory regardless if they have spaces or not. This includes hidden files, which can be dangerous. Here&#039;s my much more verbose version. 

#!/usr/bin/pythonimport osimport sys files = os.listdir(sys.argv[1])for f in files:	if f[0] == &#039;.&#039;:		print(&#039;Skipping &#039;+f)		continue	if &#039; &#039; in f:		skip = raw_input(&#039;Replacing &#039;+f+&#039;. Hit enter to continue or type s to skip:  &#039;)		if not skip:			print(f+&#039; -&gt; &#039;+f.replace(&#039; &#039;, &#039;_&#039;))			os.rename(f, f.replace(&#039; &#039;, &#039;_&#039;))		else:			print(&#039;Skipping &#039;+f)
]]></description>
		<content:encoded><![CDATA[<p>Thanks for the code snippet. I had to alter it, because as is it will rewrite all files in a directory regardless if they have spaces or not. This includes hidden files, which can be dangerous. Here&#8217;s my much more verbose version. </p>
<p>#!/usr/bin/pythonimport osimport sys files = os.listdir(sys.argv[1])for f in files:	if f[0] == &#8216;.&#8217;:		print(&#8216;Skipping &#8216;+f)		continue	if &#8216; &#8216; in f:		skip = raw_input(&#8216;Replacing &#8216;+f+&#8217;. Hit enter to continue or type s to skip:  &#8217;)		if not skip:			print(f+&#8217; -&gt; &#8216;+f.replace(&#8216; &#8216;, &#8216;_&#8217;))			os.rename(f, f.replace(&#8216; &#8216;, &#8216;_&#8217;))		else:			print(&#8216;Skipping &#8216;+f)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sell gold</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-880</link>
		<dc:creator><![CDATA[sell gold]]></dc:creator>
		<pubDate>Wed, 21 Jul 2010 12:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-880</guid>
		<description><![CDATA[Do you have an outdoor space that you dream of entertaining in but it is lacking that certain something that makes it a place that you want to be? If so, there are some simple things that you can do to make the space your very own.]]></description>
		<content:encoded><![CDATA[<p>Do you have an outdoor space that you dream of entertaining in but it is lacking that certain something that makes it a place that you want to be? If so, there are some simple things that you can do to make the space your very own.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RiCON</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-879</link>
		<dc:creator><![CDATA[RiCON]]></dc:creator>
		<pubDate>Wed, 09 Sep 2009 12:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-879</guid>
		<description><![CDATA[In Ubuntu, at least:
rename &#039;y/ /_/&#039; *

rename is a perl script using perl regex. Therefore:

&quot;y/{0}/{1}/&quot;: Search list for all occurrences of {0} and substitute by {1}
* :  Feeds all files in current dir]]></description>
		<content:encoded><![CDATA[<p>In Ubuntu, at least:<br />
rename &#8216;y/ /_/&#8217; *</p>
<p>rename is a perl script using perl regex. Therefore:</p>
<p>&#8220;y/{0}/{1}/&#8221;: Search list for all occurrences of {0} and substitute by {1}<br />
* :  Feeds all files in current dir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RiCON</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-885</link>
		<dc:creator><![CDATA[RiCON]]></dc:creator>
		<pubDate>Wed, 09 Sep 2009 12:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-885</guid>
		<description><![CDATA[In Ubuntu, at least:
rename &#039;y/ /_/&#039; *

rename is a perl script using perl regex. Therefore:

&quot;y/{0}/{1}/&quot;: Search list for all occurrences of {0} and substitute by {1}
* :  Feeds all files in current dir]]></description>
		<content:encoded><![CDATA[<p>In Ubuntu, at least:<br />
rename &#8216;y/ /_/&#8217; *</p>
<p>rename is a perl script using perl regex. Therefore:</p>
<p>&#8220;y/{0}/{1}/&#8221;: Search list for all occurrences of {0} and substitute by {1}<br />
* :  Feeds all files in current dir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marklee</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-878</link>
		<dc:creator><![CDATA[marklee]]></dc:creator>
		<pubDate>Wed, 15 Jul 2009 10:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-878</guid>
		<description><![CDATA[Well it is interesting, &lt;a href=&quot;http://www.certyourself.com&quot; rel=&quot;nofollow&quot;&gt;certification&lt;/a&gt;
 and what can I say to it but it doesn&#039;t agreed me cent by cent.]]></description>
		<content:encoded><![CDATA[<p>Well it is interesting, <a href="http://www.certyourself.com" rel="nofollow">certification</a><br />
 and what can I say to it but it doesn&#8217;t agreed me cent by cent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marklee</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-884</link>
		<dc:creator><![CDATA[marklee]]></dc:creator>
		<pubDate>Wed, 15 Jul 2009 10:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-884</guid>
		<description><![CDATA[Well it is interesting, &lt;a href=&quot;http://www.certyourself.com&quot; rel=&quot;nofollow&quot;&gt;certification&lt;/a&gt;
 and what can I say to it but it doesn&#039;t agreed me cent by cent.]]></description>
		<content:encoded><![CDATA[<p>Well it is interesting, <a href="http://www.certyourself.com" rel="nofollow">certification</a><br />
 and what can I say to it but it doesn&#8217;t agreed me cent by cent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: just_a_remark</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-877</link>
		<dc:creator><![CDATA[just_a_remark]]></dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:46:59 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-877</guid>
		<description><![CDATA[for f in *; do mv &quot;$f&quot; `echo $f &#124; tr &#039; &#039; &#039;_&#039;`; done

(not mine, taken from http://linuxconfig.wordpress.com/2008/01/04/remove-white-space-from-file-name-and-rename-it-with-bash-command/)

BUT - I like python too much!]]></description>
		<content:encoded><![CDATA[<p>for f in *; do mv &#8220;$f&#8221; `echo $f | tr &#8216; &#8216; &#8216;_&#8217;`; done</p>
<p>(not mine, taken from <a href="http://linuxconfig.wordpress.com/2008/01/04/remove-white-space-from-file-name-and-rename-it-with-bash-command/" rel="nofollow">http://linuxconfig.wordpress.com/2008/01/04/remove-white-space-from-file-name-and-rename-it-with-bash-command/</a>)</p>
<p>BUT &#8211; I like python too much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: just_a_remark</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-883</link>
		<dc:creator><![CDATA[just_a_remark]]></dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-883</guid>
		<description><![CDATA[for f in *; do mv &quot;$f&quot; `echo $f &#124; tr &#039; &#039; &#039;_&#039;`; done

(not mine, taken from http://linuxconfig.wordpress.com/2008/01/04/remove-white-space-from-file-name-and-rename-it-with-bash-command/)

BUT - I like python too much!]]></description>
		<content:encoded><![CDATA[<p>for f in *; do mv &#8220;$f&#8221; `echo $f | tr &#8216; &#8216; &#8216;_&#8217;`; done</p>
<p>(not mine, taken from <a href="http://linuxconfig.wordpress.com/2008/01/04/remove-white-space-from-file-name-and-rename-it-with-bash-command/" rel="nofollow">http://linuxconfig.wordpress.com/2008/01/04/remove-white-space-from-file-name-and-rename-it-with-bash-command/</a>)</p>
<p>BUT &#8211; I like python too much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZaQ</title>
		<link>http://justalittlebrain.wordpress.com/2008/10/19/replace-space-with-undescore-in-filename/#comment-876</link>
		<dc:creator><![CDATA[ZaQ]]></dc:creator>
		<pubDate>Tue, 18 Nov 2008 08:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://littlebrain.org/?p=195#comment-876</guid>
		<description><![CDATA[*menunggu edisi november*
*siul siul*]]></description>
		<content:encoded><![CDATA[<p>*menunggu edisi november*<br />
*siul siul*</p>
]]></content:encoded>
	</item>
</channel>
</rss>

