我想我可以做这样的事情:
wget -O- http://example.com/funky.tar.gz | \ tar --strip-components 1 -Ox | tar -cf fixed.tar.gz
从下载的 tar 中的所有项目中删除前导路径,但似乎无法从 stdin 创建 tar。请证明我是错的。
download path tar
download ×1
path ×1
tar ×1