l***t 发帖数: 81 | 1 I have two tar packages, p1.tar.gz and p2.tar.gz
How can use tar or some other tools to
concatenate two packages into one: p.tar.gz ?
Thanks, | O******e 发帖数: 734 | 2 tar cf p.tar p[12].tgz
【在 l***t 的大作中提到】 : I have two tar packages, p1.tar.gz and p2.tar.gz : How can use tar or some other tools to : concatenate two packages into one: p.tar.gz ? : Thanks,
| O******e 发帖数: 734 | 3 Maybe this is more like what you want:
$ tar tf p1.tar
file1
file2
$ tar tf p2.tar
file3
file4
$ tar Af p.tar p1.tar
$ tar Af p.tar p2.tar
$ tar tf p.tar
file1
file2
file3
file4
It seems that the "tar Af" command needs to be issued once
for each of p1 and p2. I didn't play around with the gzip
part; you can try it on your own.
【在 l***t 的大作中提到】 : I have two tar packages, p1.tar.gz and p2.tar.gz : How can use tar or some other tools to : concatenate two packages into one: p.tar.gz ? : Thanks,
|
|