wget output question

From: Andrew (andrew_at_nowayjose.xcy)
Date: 11/30/05


Date: Tue, 29 Nov 2005 23:33:18 GMT

wget 1.9

I can't seem to get wget to work the way I want it to. :(

What I'd like to do is have wget dowload a page, convert
the links, and save it to a filename that I specify.

For example, I thought this would do the job:

wget -k -O test.html http://www.google.com

This downloads the file and saves it as "test.html" but
it doesn't convert the links.

This command converts the links, but it doesn't allow
me to set the all important filename that I want:

wget -k http://www.google.com

Is this a bug in wget or was it designed to work that way?

Thank you!



Relevant Pages

  • Re: fetch extension - use local filename from content-disposition header
    ... suppose any security discussion is good. ... Any filename in the current directory can be wiped out ... >> if you fetch or wget and a URL redirects to another URL which leads to ... FreeBSD keeps the filename derived from the user-given URL, but wget ...
    (freebsd-current)
  • Re: saving .debs to their original name
    ... > What are the bad things that might happen if I just use wget to get ... > the URLs, without using the FILEname? ... I intend to use ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
    (Debian-User)
  • Re: perl program with "&"
    ... > use strict; ... > my $filename; ... > my $cmdline; ... Are you trying to run wget in background? ...
    (comp.lang.perl.misc)
  • Re: fetch extension - use local filename from content-disposition header
    ... Any filename in the current directory can be wiped ... > out if you fetch or wget and a URL redirects to another URL which ... No. Fetch uses the original filename as specified on the command ...
    (freebsd-current)
  • Re: wget output question
    ... Andrew wrote: ... > I can't seem to get wget to work the way I want it to. ... and save it to a filename that I specify. ... Prev by Date: ...
    (comp.unix.shell)