Return to Snippet

Revision: 30174
at August 9, 2010 16:31 by kentoy


Initial Code
#! /bin/bash
# use this script for downloading websites using 'wget' utility
# replace URL field with the URL to be downloaded

URL="$1"

wget -Nrkpl 0 $URL 

# wget flags and their functions
# -r = recursive: follows the links
# -k = changes links adresses to their local file adress
# -p = downloads images
# -l = recursion level. 0 for infinite.

exit

Initial URL

                                

Initial Description
<ol><li>save as filename.sh</li><li>chmod u+x filename.sh</li><li>usage : ./filename.sh\"url\"</li></ol>

Initial Title
bash [script] - download website using wget

Initial Tags
Bash, script, download, terminal

Initial Language
Bash