Rodolfo Medina wrote:
When I copy a file into the present directory, with: $ cp /path/to/file . , if the file already exists it is overwritten, i.e. the `old one' is removed and the `new one' takes its place. Instead, with directories it is not the same: when I do: $ cp -vr /path/to/dir . , if the directory already exists it is not removed, but the new one just adds files to the old one. Would it be possible, and how?, to have with directory overwriting the same behaviour we have with file overwriting?
I think what you want is rsync. The techniques you saw posted earlier are somewhat more limited. Look into --delete. Mike -- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} This message made from 100% recycled bits. You have found the bank of Larn. I can explain it for you, but I can't understand it for you. I speak only for myself, and I am unanimous in that!