begin  quoting DJA as of Fri, Jul 07, 2006 at 05:28:28PM -0700:
> Okay, I know this is a stupid newbie question I should know, but...
> What's the best way to copy the contents of a directory, including 
> hidden "." files?
> 
> o "cp -R src_dirname/* dest_dirname/" won't copy "." files.
> o "cp -R src_dirname/.* dest_dirname/" also copies ".." and "." (Right?)

It complains, but it doesn't go off into an infinite recursive
copying loop.

> o "cp src_dirname dest_dirname/ will copy the src_dirname directory
>   and its contents to dest_dirname/ which is not the desired result.

If dest_dirname doesn't exist, it should have the desired result.

-- 
_ |\_
 \|


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to