[NTLUG:Discuss] Re: copy a list to a new directory

Graham Wilson bob at decoy.wox.org
Tue May 11 11:14:39 CDT 2004


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

-- 
gram



More information about the Discuss mailing list