I am using Ubuntu 18.04 LTS and
I wish to copy files from one folder to another and along with it also wish to store the filepath of each file that's being copied from folder1 to folder2 in a third file with space as a separator.
NOTE: Since cp command does not return any output so storing it in file won't work.
Any mix of commands or script is welcome which can be run through terminal.
Please do not suggest any additional software.