Mic*_*ale 7 download path tar
我想我可以做这样的事情:
wget -O- http://example.com/funky.tar.gz | \ tar --strip-components 1 -Ox | tar -cf fixed.tar.gz
从下载的 tar 中的所有项目中删除前导路径,但似乎无法从 stdin 创建 tar。请证明我是错的。
Ale*_*lex 2
您当然可以从标准输入创建一个 tar。用作-源,并将您想要压缩的任何内容通过管道传输到其中。
-
http://ss64.com/bash/tar.html
http://www.google.com/search?q=tar+stdin
归档时间:
15 年,9 月 前
查看次数:
11122 次
最近记录:
15 年,6 月 前