I have a list of files, with their full paths, one per line in a file "files.txt"
I was trying to move all of those files from their original location to a new directory.
I CDed into the directory where they live now and issued
for file in ~/Desktop/files.txt do mv $file ~/newfolder
but nothing happens. I am sure I am missing something obvious
bash won't read the contents of the file unless you tell it to.
for file in $(cat ~/Desktop/files.txt); do mv "$file" ~/newfolder; done
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments