If we have a dir/file setup like the following
var
|-->usr
| |-FileA
| |-FileB
| |-FileC
| |-FileD
How can I move FileA and FileD without specifying the path twice like in the following cmd?
mv /var/usr/FileA /var/usr/FileB /home
[r]? – Noumenon Dec 23 '16 at 14:49/var/path first so the stderr is more easy to test. i did an answer on it somewhere here that made more sense before - especially where*is used - but its not especially useful without variables. basically, even if you insert variables somewhere in the path, a filename that exists will always evaluate to/var/...whereas any broken or inaccessible pathname will work out to/va[r]/...– mikeserv Dec 31 '16 at 22:46