Help with cp syntax

Matt Brodeur mbrodeur at NextTime.com
Wed Jul 7 17:44:00 EDT 2004


-----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
MBrodeur at NextTime.com                                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-----



More information about the gnhlug-discuss mailing list