[NTLUG:Discuss] Re: copy a list to a new directory
Chris Cox
cjcox at acm.org
Tue May 11 11:28:27 CDT 2004
Graham Wilson wrote:
> On Tue, May 11, 2004 at 11:05:56AM -0500, Bobby Wrenn wrote:
>
>>Not exactly. I want to provide the list of files to copy from a file.
>>There are files in each directory that are not on the play list. I want
>>to copy the file on the play list into a single directory in order to
>>convert and burn them onto CDs.
>
>
> Try this:
>
> for f in `cat list_of_files`; do
> cp $f .
> done
>
Or perhaps...
xargs -i cp {} . <list_of_files
or if the list isn't too long...
cp $(<list_of_files) .
More information about the Discuss
mailing list