Help with cp syntax

Ted Roche ted-mac at comcast.net
Wed Jul 7 18:35:01 EDT 2004


'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
> 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-----
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
>




More information about the gnhlug-discuss mailing list