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

Reply via email to