need couple of ksh tricks please

1) I ran myScript with 2 arguments, I meant to use 3
if I do r my, it will rerun it with the 2 arguments. is there a way I can do r my and add a third argument at the end?

2) say I did

myAcript.ksh 2 5 7 8

I realise my typo. is there an easy way to redo the command replacing A with S?

thanks

You can use vi commands to edit the line, Google on "vi commands".

Cheers

You can use

sed in your syntax so that it wil edit what ever things you want to do

vi commands work only if vi mode is on. I use emacs mode. You them them on with one of:
set -o vi
set -o emacs
But by default neither is on.

thanks all