[NTLUG:Discuss] copy a list to a new directory
Burton M. Strauss III
Burton_Strauss at comcast.net
Tue May 11 11:27:03 CDT 2004
for file in `cat somefilelist`
> -----Original Message-----
> From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
> Behalf Of Bobby Wrenn
> Sent: Tuesday, May 11, 2004 11:06 AM
> To: NTLUG Discussion List
> Subject: Re: [NTLUG:Discuss] copy a list to a new directory
>
>
> Burton M. Strauss III wrote:
> > It's the `` (left leaning quotes) - these execute the command
> and put the
> > results into the command line.
> >
> > for file in `ls -1 /some/other/directory`; do
> > cp $file .
> > done
> >
> > -----Burton
> >
> 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.
>
> So would this work:
>
> for file in 'somefilename'; do
> cp $file .
> done
>
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list