Saturday, October 18, 2008

Setting destination directory for wget

The phrase "destination directory" does not appear in the wget man page. Turns out they call it the "directory prefix":

wget -P ~/dest/dir www.foo.com/myfile.png

4 comments:

Micah Cowan said...

Try using -P together with -r and you'll see why it's called "destination prefix" rather than "destination directory". :)

Josh Diehl said...

Helpful wget tip, thanks.

SATYAANVESHI said...

Thanks Micah

M ! Я said...

thanks man :) useful tip