avatar
读过这种BT文件么?# Unix - 噫吁兮,危乎高哉
p*m
1
80M的压缩文件,unzip后是一tar,然后想拿tar解开发现出错
用more看看tar文件内容,居然里面用的是绝对路径FFTT
所以解压时往那个路径里写不料,UNIX上不行,WinZip也不行.
真BT,哪位有经验?能把它解压到其他路径么?
我打算写个shell什么的把文件内容改吧改吧,不过怀疑
行不行.
avatar
o*z
2
try GNU tar
By default, GNU `tar' drops a leading `/' on input or output

【在 p*****m 的大作中提到】
: 80M的压缩文件,unzip后是一tar,然后想拿tar解开发现出错
: 用more看看tar文件内容,居然里面用的是绝对路径FFTT
: 所以解压时往那个路径里写不料,UNIX上不行,WinZip也不行.
: 真BT,哪位有经验?能把它解压到其他路径么?
: 我打算写个shell什么的把文件内容改吧改吧,不过怀疑
: 行不行.

avatar
r*a
3
Check the manpage bah, here is the description of option -s in the tar manpage
from the Tru64 Unix which I am using, I dunno if solaris tar has this option:
s [Tru64 UNIX] Tells tar to strip off any leading slashes from pathnames
during extraction. This is useful when restoring a tape that was
created on a system with a different file system structure. (See also
the P option.)

【在 p*****m 的大作中提到】
: 80M的压缩文件,unzip后是一tar,然后想拿tar解开发现出错
: 用more看看tar文件内容,居然里面用的是绝对路径FFTT
: 所以解压时往那个路径里写不料,UNIX上不行,WinZip也不行.
: 真BT,哪位有经验?能把它解压到其他路径么?
: 我打算写个shell什么的把文件内容改吧改吧,不过怀疑
: 行不行.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。