我想我可以做这样的事情:
wget -O- http://example.com/funky.tar.gz | \
tar --strip-components 1 -Ox | tar -cf fixed.tar.gz
Run Code Online (Sandbox Code Playgroud)
从下载的 tar 中的所有项目中删除前导路径,但似乎无法从 stdin 创建 tar。请证明我是错的。
| 归档时间: |
|
| 查看次数: |
11122 次 |
| 最近记录: |