[Linux-disciples] Overwriting dirs in mv

Dylan Thurston dthurston at barnard.edu
Thu Mar 9 11:27:53 EST 2006


On Thu, Mar 09, 2006 at 10:48:47AM -0500, Stephen R Laniel wrote:
> Suppose I'm copying a directory tree A over a directory tree
> B, and both trees have identical files in them. If I do
> 
> mv -f A B
> 
> I'll get an error that mv can't overwrite B's
> subdirectories. Whereas if I do
> 
> cp -r A B
> 
> everything works fine. So then I'd have to do
> 
> rm -R A
> 
> to achieve the same effect as the 'mv' command.
> 
> Is there some way to do all of this with mv?

If you want real overkill, you could use unison.

Peace,
	Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060309/59a49a39/attachment.pgp


More information about the Linux-disciples mailing list