How can I remove the leading path from a tar and retar it in memory?
- by Michael Hale
I was thinking I could do something like this:
wget -O- http://example.com/funky.tar.gz | \
tar --strip-components 1 -Ox | tar -cf fixed.tar.gz
to remove the leading path from all items in the downloaded tar, but it appears that there is no way to create a tar from stdin. Please prove me wrong.