in reply to Increment Letter on a Command Line

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.

Replies are listed 'Best First'.
Re^2: Increment Letter on a Command Line
by rashley (Scribe) on Feb 07, 2008 at 14:55 UTC
    This was exactly what I was looking for. Thanks!