Posted By

kentoy on 08/09/10


Tagged

Bash script download terminal wget


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

armanx


bash [script] - download website using wget


 / Published in: Bash
 

  1. save as filename.sh
  2. chmod u+x filename.sh
  3. usage : ./filename.sh\"url\"
  1. #! /bin/bash
  2. # use this script for downloading websites using 'wget' utility
  3. # replace URL field with the URL to be downloaded
  4.  
  5. URL="$1"
  6.  
  7. wget -Nrkpl 0 $URL
  8.  
  9. # wget flags and their functions
  10. # -r = recursive: follows the links
  11. # -k = changes links adresses to their local file adress
  12. # -p = downloads images
  13. # -l = recursion level. 0 for infinite.
  14.  
  15. exit

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: SharkHidden on April 9, 2013

THANK YOU , ^_^ ..

You need to login to post a comment.