I occasionally need to run a command such as:
mv "very-long-file-name.x" "very-long-file-name.y"
I would like to achieve this without repeating the very long file name twice...
I know how to do this by passing just "very-long-file-name" once to a bash script which would then use $1 ... but how can I do this without a script?
vlf=$very-long-file-name
vif2=$vif
mv "$vif.x" "$vif.y"