Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Download and decompress in one hit' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Download and decompress in one hit
Authored by: calroth on May 23, '02 03:41:54AM

Here's a cool way to use tar:

curl http://some.server/download.tar.gz | tar xvfz -

Downloads the file and decompresses it in one go. Similarly for a straight gzip file, although it decompresses to standard output by default so you have to redirect it to a file.

curl http://some.server/download2.txt.gz | gunzip > download2.txt



[ Reply to This | # ]