If you want to re-run the command with the same arguments, you can do something like this:
vim long_filename
cat !$
This saves the need to re-enter the previous argument when it is passed in cat.
However, how do I pass arguments that are not the same in the last run of script / command?
long_annoying_script_name arg1 arg2
? arg3 arg4
Of course, I could just press the up arrow and delete the arguments and enter new ones, but is there a shorter / faster way?
I do NOT want to assign an alias.
source
share