I'm using a single line in cygwin to move files from a list to another folder.
$ for file in $(cat list.txt); do mv "$file" destination; done
Half the files are fine and go where they belong but the rest provide the error "mv: cannot stat 'filename.pdf'$'\r': No such file or directory". How do I get around this error so the remaining files will move?