View Single Post
Old 18 March 2023, 10:13   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
You could walk through the alphabet like this:

Code:
set num 1

lab loop

	set letter `echo "ABCDEFGHIJKLMNOPQRSTUVWXYZ" first $num len 1`

	echo ${letter}

	set num `eval $num + 1`
if val $num not gt 26
	skip back loop
endif
But IMHO this is beyond the usefulness of a shell script. You should have a look at ARexx, that's much more of a programming language.
thomas is offline  
 
Page generated in 0.04316 seconds with 11 queries