> You miss an important feature of the solution shown in (I presume) your rush to demonstrate your bash knowledge: the ability to edit a filename shown, in place.
OK, then just use !#$ (the last word of the current command) and press CTRL + ALT + e to expand it into the actual value.
OK, then just use !#$ (the last word of the current command) and press CTRL + ALT + e to expand it into the actual value.