<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.11" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Filenames by Design, Part Two</title>
	<link>http://www.linux-mag.com/id/7171/</link>
	<description>Open Source, Open Standards</description>
	<pubDate>Sat, 04 Jul 2009 19:05:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.11</generator>

	<item>
		<title>by: akton</title>
		<link>http://www.linux-mag.com/id/7171/#comment-1748</link>
		<pubDate>Mon, 17 Nov 2008 01:27:30 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/7171/#comment-1748</guid>
					<description>The seq command is also nice to generate sequences. Instead of typing {1,2,3,4,5,6,7,8,9} , you can type $(seq 1 9)</description>
		<content:encoded><![CDATA[<p>The seq command is also nice to generate sequences. Instead of typing {1,2,3,4,5,6,7,8,9} , you can type $(seq 1 9)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jerry Peek</title>
		<link>http://www.linux-mag.com/id/7171/#comment-1691</link>
		<pubDate>Tue, 04 Nov 2008 14:44:37 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/7171/#comment-1691</guid>
					<description>Thanks, maximd and wirawan0.  I need to take a closer look at bash 3.

I'm guessing that bash got the {1..9} expansion from the Z Shell, which has had it for quite a while.  Here's some info from the zshexpn(1) manpage:

&lt;blockquote&gt;An expression of the form `{n1..n2}', where n1 and n2 are integers, is expanded to every number between n1 and n2 inclusive.  If either number begins with a zero, all the resulting numbers will be padded with leading zeroes to that minimum width.  If the numbers are in decreasing order the resulting sequence will also be in decreasing order.

If a brace expression matches none of the above forms, it is left unchanged, unless the BRACE_CCL option is set. In that case, it is expanded to a sorted list of the individual characters between the braces, in the manner of a search set.  `-' is treated specially as in a search set, but `^' or `!' as the first character is treated normally.&lt;/blockquote&gt;

Jerry</description>
		<content:encoded><![CDATA[<p>Thanks, maximd and wirawan0.  I need to take a closer look at bash 3.</p>
<p>I&#8217;m guessing that bash got the {1..9} expansion from the Z Shell, which has had it for quite a while.  Here&#8217;s some info from the zshexpn(1) manpage:</p>
<blockquote><p>An expression of the form `{n1..n2}&#8217;, where n1 and n2 are integers, is expanded to every number between n1 and n2 inclusive.  If either number begins with a zero, all the resulting numbers will be padded with leading zeroes to that minimum width.  If the numbers are in decreasing order the resulting sequence will also be in decreasing order.</p>
<p>If a brace expression matches none of the above forms, it is left unchanged, unless the BRACE_CCL option is set. In that case, it is expanded to a sorted list of the individual characters between the braces, in the manner of a search set.  `-&#8217; is treated specially as in a search set, but `^&#8217; or `!&#8217; as the first character is treated normally.</p></blockquote>
<p>Jerry
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: links for 2008-11-03 &#171; Where Is All This Leading To?</title>
		<link>http://www.linux-mag.com/id/7171/#comment-1688</link>
		<pubDate>Mon, 03 Nov 2008 23:31:27 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/7171/#comment-1688</guid>
					<description>[...] Filenames by Design, Part Two &#124; Linux Magazine (tags: software linux programming filename bash scripting) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Filenames by Design, Part Two | Linux Magazine (tags: software linux programming filename bash scripting) [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: wirawan0</title>
		<link>http://www.linux-mag.com/id/7171/#comment-1687</link>
		<pubDate>Mon, 03 Nov 2008 22:11:22 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/7171/#comment-1687</guid>
					<description>Commenting on maximd's comment:

&#62; With Bash (this tip does not work with Csh for exemple), instead of using {1,2,3,4,5,6,7,8,9} you can simply type {1..9}.

This is correct, but it only works for Bash 3.0 and above.</description>
		<content:encoded><![CDATA[<p>Commenting on maximd&#8217;s comment:</p>
<p>&gt; With Bash (this tip does not work with Csh for exemple), instead of using {1,2,3,4,5,6,7,8,9} you can simply type {1..9}.</p>
<p>This is correct, but it only works for Bash 3.0 and above.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: frases</title>
		<link>http://www.linux-mag.com/id/7171/#comment-1685</link>
		<pubDate>Mon, 03 Nov 2008 20:04:07 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/7171/#comment-1685</guid>
					<description>Great article, Jerry.  Learned some new tricks!

Maximd,
Interesting..your shortcut didn't work in my Bash shell on my MacBook:
MACLT:~/Documents$ echo $SHELL
/bin/bash
MACLT:~/Documents$ echo {1,9}{a,b,c}
1a 1b 1c 9a 9b 9c
MACLT:~/Documents$ echo {1..9}
{1..9}

scott</description>
		<content:encoded><![CDATA[<p>Great article, Jerry.  Learned some new tricks!</p>
<p>Maximd,<br />
Interesting..your shortcut didn&#8217;t work in my Bash shell on my MacBook:<br />
MACLT:~/Documents$ echo $SHELL<br />
/bin/bash<br />
MACLT:~/Documents$ echo {1,9}{a,b,c}<br />
1a 1b 1c 9a 9b 9c<br />
MACLT:~/Documents$ echo {1..9}<br />
{1..9}</p>
<p>scott
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: maximd</title>
		<link>http://www.linux-mag.com/id/7171/#comment-1684</link>
		<pubDate>Mon, 03 Nov 2008 15:49:29 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/7171/#comment-1684</guid>
					<description>Hello, this is a great article and in an attempt to share more knowledge about command line tips, here's this one:

With Bash (this tip does not work with Csh for exemple), instead of using {1,2,3,4,5,6,7,8,9} you can simply type {1..9}.

Give it a try in a Bash shell with:
&lt;code&gt;
echo {1..9}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hello, this is a great article and in an attempt to share more knowledge about command line tips, here&#8217;s this one:</p>
<p>With Bash (this tip does not work with Csh for exemple), instead of using {1,2,3,4,5,6,7,8,9} you can simply type {1..9}.</p>
<p>Give it a try in a Bash shell with:<br />
<code><br />
echo {1..9}<br />
</code>
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
