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
for file in ~/Desktop/files.txt; do echo $file; done. – nerdwaller Jan 18 at 17:01for n in $(cat files.txt); do something; doneorwhile read n; do something; done < files.txt. – terdon Jan 18 at 17:24