<?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: Zero Padding in Bash</title>
	<atom:link href="http://jonathanwagner.net/2007/04/zero-padding-in-bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/</link>
	<description>The webspace of Jonathan Wagner</description>
	<pubDate>Mon, 06 Oct 2008 16:04:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Thul Dai</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-680</link>
		<dc:creator>Thul Dai</dc:creator>
		<pubDate>Wed, 17 Sep 2008 08:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-680</guid>
		<description>Thanks a lot, very useful.

What I often do as a workaround is add 100 (or 1000 as it were) so my ensemble runs (and respective folders, files, ...) are numbered from 101 to 150 instead of 1 to 50. That works also easily in Fortran and other funky languages.

TD</description>
		<content:encoded><![CDATA[<p>Thanks a lot, very useful.</p>
<p>What I often do as a workaround is add 100 (or 1000 as it were) so my ensemble runs (and respective folders, files, &#8230;) are numbered from 101 to 150 instead of 1 to 50. That works also easily in Fortran and other funky languages.</p>
<p>TD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mardson</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-661</link>
		<dc:creator>mardson</dc:creator>
		<pubDate>Wed, 13 Aug 2008 23:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-661</guid>
		<description>thank you all. much time saved, much work accomplished, minimal effort expended ;)</description>
		<content:encoded><![CDATA[<p>thank you all. much time saved, much work accomplished, minimal effort expended ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binny V A</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-657</link>
		<dc:creator>Binny V A</dc:creator>
		<pubDate>Tue, 01 Jul 2008 18:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-657</guid>
		<description>Thanks! I was going to write a script for this - you saved my time.</description>
		<content:encoded><![CDATA[<p>Thanks! I was going to write a script for this - you saved my time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gxx</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-656</link>
		<dc:creator>gxx</dc:creator>
		<pubDate>Wed, 25 Jun 2008 02:16:32 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-656</guid>
		<description>Thanks SirPavlova, that was exactly what I was looking for...</description>
		<content:encoded><![CDATA[<p>Thanks SirPavlova, that was exactly what I was looking for&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SirPavlova</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-654</link>
		<dc:creator>SirPavlova</dc:creator>
		<pubDate>Mon, 12 May 2008 19:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-654</guid>
		<description>For anyone wanting to do this using jot, try "jot -w %03d 10 1" for 001 to 010, etc. Hopefully this saves one or two people a trip to the man pages.</description>
		<content:encoded><![CDATA[<p>For anyone wanting to do this using jot, try &#8220;jot -w %03d 10 1&#8243; for 001 to 010, etc. Hopefully this saves one or two people a trip to the man pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pedro</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-652</link>
		<dc:creator>pedro</dc:creator>
		<pubDate>Sat, 26 Apr 2008 11:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-652</guid>
		<description>Great stuff, I used to program in C and C++ but never really realised how printf() could fit in shell commands/scripts.

Now I do! Good on ya, thanks</description>
		<content:encoded><![CDATA[<p>Great stuff, I used to program in C and C++ but never really realised how printf() could fit in shell commands/scripts.</p>
<p>Now I do! Good on ya, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Tracy</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-640</link>
		<dc:creator>William Tracy</dc:creator>
		<pubDate>Wed, 20 Feb 2008 06:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-640</guid>
		<description>Thank-you.

Thank-you, thank-you.</description>
		<content:encoded><![CDATA[<p>Thank-you.</p>
<p>Thank-you, thank-you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snakehsu</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-637</link>
		<dc:creator>snakehsu</dc:creator>
		<pubDate>Fri, 25 Jan 2008 13:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-637</guid>
		<description>Thanks for the tips.  For your particular case you can use seq no problem.  But sometimes you may need to use these numbers as array index, which is my case, in which I cannot use seq -w as Bash consider 01, 02 ... as octet numbers so 08 and 09 would be ``illegal'' index.  So I used seq without -w as index and used your printf method to generate zero paddings when I need them in the filename.</description>
		<content:encoded><![CDATA[<p>Thanks for the tips.  For your particular case you can use seq no problem.  But sometimes you may need to use these numbers as array index, which is my case, in which I cannot use seq -w as Bash consider 01, 02 &#8230; as octet numbers so 08 and 09 would be &#8220;illegal&#8221; index.  So I used seq without -w as index and used your printf method to generate zero paddings when I need them in the filename.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-630</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 08 Nov 2007 14:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-630</guid>
		<description>seq has an option to zero-pad (-w) so you can just do this:

seq -w 1 31</description>
		<content:encoded><![CDATA[<p>seq has an option to zero-pad (-w) so you can just do this:</p>
<p>seq -w 1 31</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: al</title>
		<link>http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-236</link>
		<dc:creator>al</dc:creator>
		<pubDate>Thu, 21 Jun 2007 18:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanwagner.net/2007/04/zero-padding-in-bash/#comment-236</guid>
		<description>Starting to work on some BASH stuff the other day and this saved my sanity.  Thanks!</description>
		<content:encoded><![CDATA[<p>Starting to work on some BASH stuff the other day and this saved my sanity.  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
