<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Schadenfreude &#187; tip</title>
	<atom:link href="http://www.ralree.com/tag/tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Sun, 28 Feb 2010 04:18:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Renaming Files Sequentially with BASH</title>
		<link>http://www.ralree.com/2008/08/06/renaming-files-sequentially-with-bash/</link>
		<comments>http://www.ralree.com/2008/08/06/renaming-files-sequentially-with-bash/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 04:34:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/08/06/renaming-files-sequentially-with-bash</guid>
		<description><![CDATA[I made a cool one-liner in bash today that renames files sequentially.  Here&#8217;s an example that takes all the JPEGs in a directory and renames them in order:

EII=4; for i in *.jpg; do ls $i; \
NEWNAME=IMG_00`printf "%02d" $EII`.JPG; \
echo Renaming $i to $NEWNAME; \
mv $i $NEWNAME; EII=`expr $EII + 1`; done

Pretty cool, huh?  [...]]]></description>
			<content:encoded><![CDATA[<p>I made a cool one-liner in bash today that renames files sequentially.  Here&#8217;s an example that takes all the JPEGs in a directory and renames them in order:</p>
<pre><code>
EII=4; for i in *.jpg; do ls $i; \
NEWNAME=IMG_00`printf "%02d" $EII`.JPG; \
echo Renaming $i to $NEWNAME; \
mv $i $NEWNAME; EII=`expr $EII + 1`; done
</code></pre>
<p>Pretty cool, huh?  This is in relation to my next post.  Keep watch&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/08/06/renaming-files-sequentially-with-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

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