If I want to move a file called
/longpath/morepath/ can I do something like
mv (/longpath)/(longfile) $1/morepath/$2
i.e. can I let the bash know that it should remember a specific part of the input so I can reuse it later in the same input?
(In the above example I use an imaginary remembering command that works by enclosing in parantheses and an imaginary reuse command
$ that inserts the content of the groups)