Oops. <looks sheepish> I did indeed mean for both instances of the word
"Filename" to be in the same case.
<sigh> I must be getting old; either that or I'm not drinking enough
coke.
Apologies if I caused any confusion. :)
P.
On Wed, 2002-10-16 at 08:23, [EMAIL PROTECTED] wrote:
> Paul Furness wrote:
> >
> > Path="My Documents/"
> > for FILENAME in ls "${Path}"
> > do
> > cp "${Path}${Filename}" "/tmp"
> > done
>
> I think you mean:
> ----------------------------------
> Path="My Documents/"
> for FILENAME in `ls "${Path}"`
> do
> cp "${Path}${FILENAME}" "/tmp"
> done
> ----------------------------------
> Note the changes in lines two and four.
>
>
> Cheers,
> Steven
>
> ______________________________
> http://www.volny.cz/basiclinux
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
Paul Furness
Systems Manager
2+2=5 for extremely large values of 2.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs