in reply to Re: Copying a list of files from a directory to a new directory
in thread Copying a list of files from a directory to a new directory
But not being a great fan of the shell syntax, I would personally tend to do it with a Perl one-liner, something like this (reusing here the OP's syntax):
even though it might be slightly less efficient, or possibly something similar using the File::Copy module.perl -ne 'chomp; system("cp $_ newdirectory/")' mylist.txt
|
|---|