No need to convert to an integer and what not; ++ does the right thing. You also can cure some of your backwhackitis by just passing the current letter as an argument rather than trying to get it to interpolate.
NEXTBUILDLETTER=$( perl -le '$l=shift;print++$l' $BUILDLETTER )
Update: Also keep in mind that that's going to behave slightly saner than using ord, for some value of sane where "AA" follows "Z" rather than "[".
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Increment Letter on a Command Line
by Fletch
in thread Increment Letter on a Command Line
by rashley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |