由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - How to concatenate two .tar.gz files
相关主题
大牛 in Perl and SED?Python question
python gc question怎样才能用perl等东西知道c macro中的数值
[合集] 如何能让这个程序快一点呢?太慢了in C++ how to write file in gzip format directly?
gvim diff question两个C的#define问题
how to assign new value to loop variables?Path with non-ascii character
A problem on string parsing (using either grep or perl)请问如何可以看gunzip的text中的一部分
如果python command line positional arguments 里有些是运算,那这种argument 该怎么处理?问两道微软的email笔试题目
I like this one.一个popen加gzip的问题
相关话题的讨论汇总
话题: tar话题: two话题: files话题: packages
进入Programming版参与讨论
1 (共1页)
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,

1 (共1页)
进入Programming版参与讨论
相关主题
一个popen加gzip的问题how to assign new value to loop variables?
不会写pipe大虾帮帮忙吧...A problem on string parsing (using either grep or perl)
java GZip 求助如果python command line positional arguments 里有些是运算,那这种argument 该怎么处理?
Multilanguage Support?I like this one.
大牛 in Perl and SED?Python question
python gc question怎样才能用perl等东西知道c macro中的数值
[合集] 如何能让这个程序快一点呢?太慢了in C++ how to write file in gzip format directly?
gvim diff question两个C的#define问题
相关话题的讨论汇总
话题: tar话题: two话题: files话题: packages