[Linux-disciples] Overwriting dirs in mv

Stephen R Laniel steve at laniels.org
Thu Mar 9 10:48:47 EST 2006


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?

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- 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/1f953edf/attachment.pgp


More information about the Linux-disciples mailing list