[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 15:02:20 -0400
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