Score:0

Copy files from a list with spaces in the names to a new destination in Ubuntu

us flag

so i have an mp3 playlist (playlist.txt):

/home/ME/music/These guys/The first dumb track.mp3
/home/ME/music/Band two/my fav track04.mp3
/home/ME/music/Some other weirdos/The third One.mp3

obviously the list is way longer..

How do i make a batch file (bash?) That will copy all the files in this txt to a specific directory??

or is there a command i can run that will do this?

Thanx in advance.

hr flag
See [How to copy file from a list to a new folder?](https://askubuntu.com/questions/1127773/how-to-copy-file-from-a-list-to-a-new-folder) - but note that if you use the answer based on xargs, you will need to set the delimiter to newline (`xargs -r -d '\n'`) to avoid splitting the arguments on whitespace.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.