[Chicago-talk] Merging two dir's into a third
Don Drake
don at drakeconsult.com
Wed Feb 18 12:56:13 CST 2004
This will work:
# cd dira
# tar cvf - * | (cd ../dirc; tar xvf -)
# cd ../dirb
# tar cvf - * | (cd ../dirc; tar xvf -)
-Don
> -----Original Message-----
> From: chicago-talk-bounces at mail.pm.org
> [mailto:chicago-talk-bounces at mail.pm.org]On Behalf Of Shawn C Carroll
> Sent: Wednesday, February 18, 2004 12:32 PM
> To: chicago-talk at mail.pm.org
> Subject: [Chicago-talk] Merging two dir's into a third
>
>
>
> I'm gonna ask before I go write something...
>
> Is there a way to take two dir tree's with simular structure and merge
> them into a third tree?
>
> I've seen some pointers to diff, but I don't want to compare
> files ( none
> are gonna match ) I just want to be able to take
> dira/apple/this.txt
> and
> dirb/apple/that.txt
>
> and end up with
>
> dirc/apple/this.txt
> dirc/apple/that.txt
>
> --
> Shawn Carroll
> shawn at owbn.org
> Perl Programmer
> Soccer Referee
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at mail.pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
More information about the Chicago-talk
mailing list