Linux.com

Re:"&" character a problem in wget file names?

Posted by: Anonymous Coward on March 15, 2006 08:38 AM
grover you need to escape the ampersands on the command line for a wget command. to do this, either put the wget command in quotes:


    wget "http://foo.com?bar=baz&quix=hello&something"

or escape them with backslashes:


    wget <a href="http://foo.com?bar=baz" title="foo.com">http://foo.com?bar=baz</a foo.com>\&quix=hello\&something

#

Return to CLI Magic: the word on wget