Command line download in bash with wget, decompress tar.gz2 one liner

By neokrates, written on May 5, 2010

bash   snippet

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 354 views
Rate it
Ad
Poll
  • You parse your logs using?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

You can download under Unix using wget "my-full-url".

Example (get me some firefox):

wget "http://download.mozilla.org/?product=firefox-3.5.9&os=linux&lang=en-US";

Often files are tar.gz2-ed, in that case:

wget -O firefox.tar.gz2 "http://download.mozilla.org/?product=firefox-3.5.9&os=linux&lang=en-US";tar -vxjf firefox.tar.gz2
Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: -1 (from 3 votes)
1 votes 'YES'  2 votes 'NO'
TAGS
No tags for this post.
RELATED
Pages
Posts
SOCIAL
Be Sociable, Share!

Leave a Reply