Is it possible to use
! to re-run a bash command line that starts with a digit? I know that, normally,
!<digit> selects a command by position, and
!<text> selects a command by text. I am wondering if the
<text> interpretation can be forced.
My use case is 7-zip,
/usr/bin/7z. I frequently do
7z e *.zip in whichever directory I happen to be in. I can't use
!7 to retrieve that command, in general. My workaround is to use CtrlR and interactive history search.
I looked on Google, and I tried
!"7", without success. Is there a way? Thanks!