如何提取tar文件里面的tar文件 [英] How to extract a tar file inside a tar file

查看:208
本文介绍了如何提取tar文件里面的tar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助提取焦油内的tar文件。我可以提取父母的焦油,然后解压孩子的焦油,但想看看是否有什么办法,只是不提取父untaring焦油孩子焦油..

例如:

 焦油-tf parent.tar家长/
父/ child.tar
父/文件1
父/文件2
父/文件3


解决方案

您应该添加一个参数文件匹配焦油内,使用 -O - 到标准输出来提取数据到标准输出管道,并用另一种焦油提取它:

 焦油-xOf parent.tar父/ child.tar |焦油-x

I need help to extract a tar file inside a tar. I can extract the parent tar and then untar the child tar but trying to see if there any way to just extract the child tar without untaring parent tar..

eg:

tar -tf parent.tar

parent/
parent/child.tar
parent/file1
parent/file2
parent/file3

解决方案

You should add an argument to match the file inside the tar and use -O or --to-stdout to extract data to stdout to pipe and use another tar to extract it:

tar -xOf parent.tar parent/child.tar | tar -x

这篇关于如何提取tar文件里面的tar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆