[ale] sequencing the alphabet

timothy at meanor.net timothy at meanor.net
Tue May 8 15:02:20 EDT 2007


Here's one way:
perl -e 'foreach (a..z) {print $_ . " "}'

-Tim

>>Every now and then I need to do a for loop and iterate through the
>>alphabet.  If I was iterating through numbers I could use seq to output
>>a sequence like this:
>>
>>for i in `seq 0 9`; do ....
>>
>>What I need to do is something like this:
>>
>>for i in `a b c d e f g h i j k l m n o p q r s t u v w x y z`; do .....
>>
>>Any idea on how to keep from typing a b c d e f g h i j k l m n o p q r
>>s t u v w x y z every time?
>>
>>Tia,
>>
>>-Jim P. 
>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale



More information about the Ale mailing list