In bash, I know how to
history |grep foo
which will give me a list of numbered commands from history containing foo. If I want to run one of those commands with a different argument, I can copy paste using the mouse. I don't want to repeat an exact command. I want to load it at the prompt and change something, then execute it. Is there a way to do so? Up arrow doesn't always work for me.
CTRL+r
and then using the left/right arrow keys to edit parameters not an acceptable workflow? – kemotep Jul 09 '19 at 14:48