how to replace a string in the last shell command

for example
the last command i run is:
tail -f 2010123114_mta2.wmwm.com_postfix-MDAD.log | grep XXXX
and i want to raplace '2010123114' with '2010123115', and i don't want to go back to the position and delete 4 and add 5
is there a way to replace a string? like

!!//123114/123115

or something like this

i used to read a article about this but i forget

^123114^123115

should do it (in bash)Here is their manpage on history manipulation.

1 Like