[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] sequencing the alphabet
- Subject: [ale] sequencing the alphabet
- From: timothy at meanor.net (timothy at meanor.net)
- Date: Tue, 08 May 2007 16:51:05 -0400
This only appears to work on Bash 3.x. On Bash 2.x, the output is simply "{a..z}".
>>On Tue, 2007-05-08 at 15:45 -0400, Alex LeDonne wrote:
>>> In bash:
>>>
>>> for i in {a..z};
>>> do echo $i;
>>> done
>>>
>>> Note that this does the right thing for numbers... {0..20} does what
>>> you would expect. See "Brace expansion" in your bash manpage.
>>
>>Cool, that should do it.
>>
>>> I don't see anything similar in sh. What's the environment requirement?
>>
>>Bash on Solaris 8/9/10, Linux *, and presumably some AIX in the near
>>future.
>>
>>Thx!
>>
>>-Jim P.
>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale