Since I'm often copying a varying number of specific files to a (rather convoluted) destination directory over the network, my life would be so much easier if I could use
-t flag: With it, you can specify the target directory "at the beginning"—and not as the final argument.
That way, I could
CTRL-R to my copy command and then
CTRL-W the previously copied files, all the while leaving the (complex) setup and destination destination system and directory no matter how many files there were earlier.
But I can't find any fitting flags, neither for
scp nor for
rsync. (I'd use either, if one of them offered this option.)
rsync offer anything akin to
In my desperation, I've even toyed around with
bash's history control, the argument extraction mechanisms in particular: Unfortunately, it doesn't seem to be possible to specify ranges in the form of "the x-th argument to the last-but-one", which I would need since I don't always have the number of arguments (unless I count…).