Wait, there's also print "\e[4;${a}H\e[10CEnd here\n"; provided you don't need the value of $a later. (I assume you don't, and the OP only increments it in place only because that way he can interpolate simply $a.)
In reply to Re^3: Modify a variable within curly braces (ASCII Sequence))
by ambrus
in thread Modify a variable within curly braces (ASCII Sequence))
by westrock2000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |