[ale] sequencing the alphabet

timothy at meanor.net timothy at meanor.net
Tue May 8 16:51:05 EDT 2007


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



More information about the Ale mailing list