Unfortunately, you cannot put variables inside ranges {start..end}in bash.
This does what you want:
until [[ $s == "_" ]]; do echo $s && s=$(tr "a-z" "b-z_" <<<$s); done
tr . "_" - "z" .
:
$ s=t
$ until [[ $s == "_" ]]; do echo $s && s=$(tr "a-z" "b-z_" <<<$s); done
t
u
v
w
x
y
z
Perl, :
perl -le 'print for shift .. "z"' $s
.. "z" .
bash :
for ((i=$(LC_CTYPE=C printf '%d' "'$s"); i<=122; ++i)); do
printf "\\$(printf '%03o' $i)\n"
done
for ASCII $s "z" , ASCII 122. printf , . printf escape- . Greg wiki , ASCII .
, eval , , , , . , script, , - .