I want to download a file with Wget, but per the usual UNIX philosophy, I don't want it to output anything if the download succeeds. However, if the download fails, I want an error message.
The -q option suppresses all output, including error messages. If I include -nv option instead, Wget still prints (on stderr):
2012-05-03 16:17:05 URL:http://example.net/ [2966] -> "index.html" [1]
How can I remove even that output, but still get error messages?
--fail? wouldn't it make sense to treat HTTP errors as something you would want to go to stderr? – gilad905 Oct 04 '17 at 13:47--failand--show-errordoes. – u1686_grawity Oct 04 '17 at 13:59