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

By neokrates, written on May 5, 2010

bash   snippet

Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
Ad
Poll
  • What computer language you specialize in?

    • Java (71%, 10 Votes)
    • PHP (29%, 4 Votes)
    • Scala (0%, 0 Votes)
    • Ruby (0%, 0 Votes)
    • C# (0%, 0 Votes)
    • Basic (0%, 0 Votes)
    • Python (0%, 0 Votes)
    • C (0%, 0 Votes)
    • C++ (0%, 0 Votes)
    • Other (0%, 0 Votes)

    Total Voters: 14

    Vote

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

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
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: -1 (from 1 vote)
0 votes 'YES'  1 votes 'NO'
TAGS
No tags for this post.
RELATED
Pages
Posts
    nope :(
SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

Leave a Reply