I downloaded a tarball(
abc.tar.gz) which has a root folder(
abc) and multiple subfolders(
c, etc). And I have a folder called
Target in machine(macbook pro), with multiple subfolders(
c, etc) either.
Now I want to unarchive the tarball to
Target folder and auto merge the subfolders. How can I achieve it? I've tried to unarchive it in
Target but result with a subfolder(
cp abc.tar.gz ~/Target cd ~/Target tar xzvf abc.tar.gz
Target/abc/a Target/abc/b Target/a Target/b
What I want is:
Target/a # auto merged Target/b # auto merged
Thanks in advance!