Help with cp syntax

2004-07-07 Thread Ted Roche
I'm trying to copy a nested set of directories and files I've uploaded 
to my
home directory to the corresponding folders on the web site:

cp -Rv /home/troche/Present/1999/*.* /var/www/html/Present/1999/ 
--reply=yes

The files in the 1999 folder are copying fine, but the files in
subdirectories of the source 1999 folder, subdirectories that don't 
exist in
the target, are being ignored. Isn't that what the -R as in recursive 
is
supposed to do?

Ted Roche  Associates, LLC
http://www.tedroche.com
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: Help with cp syntax

2004-07-07 Thread Numberwhun
Ted Roche wrote:
Isn't that what the -R as in recursive is
supposed to do?
Yup, sure is.  Have you tried taking out the *.*?  I believe you should 
just need the directory name in this case.

Regards,
jlk
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: Help with cp syntax

2004-07-07 Thread Kenny Donahue
The *.* is burning  you.  Just use the single *
Thanks,
Kenny
Ted Roche wrote:
I'm trying to copy a nested set of directories and files I've uploaded 
to my
home directory to the corresponding folders on the web site:

cp -Rv /home/troche/Present/1999/*.* /var/www/html/Present/1999/ 
--reply=yes

The files in the 1999 folder are copying fine, but the files in
subdirectories of the source 1999 folder, subdirectories that don't 
exist in
the target, are being ignored. Isn't that what the -R as in 
recursive is
supposed to do?

Ted Roche  Associates, LLC
http://www.tedroche.com
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss

___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: Help with cp syntax

2004-07-07 Thread Matt Brodeur
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Jul 07, 2004 at 05:23:43PM -0400, Ted Roche wrote:

 cp -Rv /home/troche/Present/1999/*.* /var/www/html/Present/1999/ 

 The files in the 1999 folder are copying fine, but the files in
 subdirectories of the source 1999 folder, subdirectories that don't
 exist in the target, are being ignored. Isn't that what the -R as
 in recursive is supposed to do?

   Change that *.* to just *.  Right now you're telling cp to only
copy files/directories that contain at least one dot.  My guess is
that you directory names don't in fact have dots in them.

- -- 
Matt BrodeurRHCE
[EMAIL PROTECTED]http://www.NextTime.com

Go the extra mile -- It makes your boss look like an incompetent slacker.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFA7G6Wc8/WFSz+GKMRAukYAJwIJoiWeEy/crMoLW0lOqfFYAcFiQCggyJO
Dem9IUKrDqeiNKounbxNhcU=
=rKcf
-END PGP SIGNATURE-
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: Help with cp syntax

2004-07-07 Thread Ted Roche
'Xactly right - thanks to all!
On Jul 7, 2004, at 5:43 PM, Matt Brodeur wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, Jul 07, 2004 at 05:23:43PM -0400, Ted Roche wrote:
cp -Rv /home/troche/Present/1999/*.* /var/www/html/Present/1999/
The files in the 1999 folder are copying fine, but the files in
subdirectories of the source 1999 folder, subdirectories that don't
exist in the target, are being ignored. Isn't that what the -R as
in recursive is supposed to do?
   Change that *.* to just *.  Right now you're telling cp to only
copy files/directories that contain at least one dot.  My guess is
that you directory names don't in fact have dots in them.
- --
Matt Brodeur   
 RHCE
[EMAIL PROTECTED]
http://www.NextTime.com

Go the extra mile -- It makes your boss look like an incompetent 
slacker.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFA7G6Wc8/WFSz+GKMRAukYAJwIJoiWeEy/crMoLW0lOqfFYAcFiQCggyJO
Dem9IUKrDqeiNKounbxNhcU=
=rKcf
-END PGP SIGNATURE-
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss