merging file sub-trees

ken at flyingtoasters.net ken at flyingtoasters.net
Mon Jun 2 15:51:24 EDT 2003


"cp" under Linux has become somewhat powerful; the following worked fine
for me:

cp -a a c && rm -rf a

Copy, recursively and with permissions, etc., retained, dir "a" into c;
then, if the copy worked, blow away a.  Note that it will overwrite your
stuff, though I think if you have "noclobber" set, it'll prompt, though my
recollection's somewhat hazy.

-Ken

> One approach might be to just have one instance of
> tar (standing in the source directory) squirt all
> the files over to another instance that's standing
> in the destination directory, maybe like this:
>
>    cd srcDir ; tar cf - . | tar xf - -C destDir
>
> _______________________________________________
> 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