Just wanted to write this little shell code snippet down because I’ve been using it quite a bit. It downloads, ungzips, and untars a file without saving it using wget:
wget -O – http://example.com/file.tgz | tar xvz
Or, if you’re Mac Like Me, you’d use curl:
curl http://example.com/file.tgz | tar xvz
Beats having all those .tar.gz files laying around like dirty kleenex.
- Nick Vahalik's blog
- Login or register to post comments