!fra are replaced with the most recent command
lines that started with
!?af? is replaced with the most recent command line that
af anywhere on the line.
But if your memory is like mine (not very good), you might not be sure
!?af? will bring back the command you want.
You can test it by adding
:p to the end.
The shell will print the substitution but won't execute the command line.
If you like what you got, type
!! to execute it.
!?af?:plp afile bfile cfile %
!!lp afile bfile cfile request id is 676
At the first prompt, the
:p meant the command line was only printed.
At the second prompt, I didn't use
:p and the lp command
:p works with all history operators, not just with