[Chicago-talk] Merging two dir's into a third

Steven Lembark lembark at wrkhors.com
Thu Feb 19 12:10:51 CST 2004



-- Mike Pastore <mike at oobak.org>

> Am I missing something??
>
> 	$ mkdir -p dira/apple dirb/apple dirc
> 	$ touch dira/apple/this.txt dirb/apple/that.txt
> 	$ cp -r dira/* dirb/* dirc/
> 	$ ls dirc/apple/
> 	that.txt  this.txt

cp -r looses ctime, mtime (reset due to new file). Might
also loose ownership (unless you own the originals) and
mods (uses umask by default).


--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 888 359 3508



More information about the Chicago-talk mailing list