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

Randal L. Schwartz merlyn at stonehenge.com
Wed Feb 18 12:41:36 CST 2004

>>>>> "Shawn" == Shawn C Carroll <shawn at owbn.org> writes:

Shawn> I'm gonna ask before I go write something...

Shawn> Is there a way to take two dir tree's with simular structure and merge
Shawn> them into a third tree?

Shawn> I've seen some pointers to diff, but I don't want to compare files ( none
Shawn> are gonna match ) I just want to be able to take
Shawn> dira/apple/this.txt
Shawn> and
Shawn> dirb/apple/that.txt

Shawn> and end up with

Shawn> dirc/apple/this.txt
Shawn> dirc/apple/that.txt

What do you do when the filenames *do* match?

What do you do when a filename of one is a directory name of the other?

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

More information about the Chicago-talk mailing list