Bash Function To Download A Web Site

October 23, 2008

Remembering all the options for wget is the reason for the following function. Add it your .bashrc and then run ‘wget-site URL’ and you’ll get a copy of the site locally for offline browsing

function wget-site {
wget -v -m -w 2 -p -E -k $1
}

Tags: bash