Brad Lucas

A blog mostly about programming
October 23, 2008

Bash Function To Download A Web Site

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