I have a .txt file (called list.txt) containing a list of filenames, including their paths. Such as:
I want these copied to a folder on my desktop called "new-folder". I use this script in Terminal to do it:
cp `cat /Users/Me/Desktop/list.txt` /Users/Me/Desktop/new-folder/
And this works spendidly!
But now I want to expand this functionality.
First of all, it doesn't work if the paths contain spaces, which is not very practical.
Second, I'm not always sure of the paths. I would like Terminal to search in a certain folder and its subfolders for the file called "0001.pdf".
My knewledge of Terminal is pretty much limited to this one script, just so you guys know.
I hope someone can help me, and many thanks in advance!