The ROOT history like in BASH?

Hello,
is it possible to make some development to ROOT history operation like it is in BASH - list N last commands of the history and short way to repeat the needed command:
history 50
!727

?
Regards
Oleg

Did you try CTRL-R ?

Hi Valeri,
You’ve suggested it’s the pattern search in the history of such recent command.
Really I made something I’ve asked: the two bash scripts - one displays last N lines of .root_hist file and another one searches all the commands with needed patterns:
.!script1 40
.!script2 pattern1 pattern2 pattern3 …

I wanted to do such things via internal ROOT commands.

Regards
Oleg