title: wget screen output can't be redirected to a log file using shell script
body: <p>I have s shell script, the content is as below
  I hope the screen output could be redirected to templog, 
  the screen output not the html content but is like</p>
  
  <pre><code>--2012-10-30 15:53:14--  http://www.youtube.com/results?search_query=pig
  Resolving www.youtube.com... 173.194.34.5, 173.194.34.6, 173.194.34.7, ...
  Connecting to www.youtube.com|173.194.34.5|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: unspecified [text/html]
  Saving to: “search_result”
  
      [ &lt;=&gt;                                   ] 108,503     --.-K/s   in 0.07s   
  
  2012-10-30 15:53:15 (1.40 MB/s) - “search_result” saved [108503]
  </code></pre>
  
  <p>but it can't 
  I tried 2>&amp;1|cat > templog
  still not OK</p>
  
  <p>you can copy the content and make a wget.sh file and then run it
  you will notice that the content can not be redirected to templog, </p>
  
  <p>how to deal with this to achieve my target?
  thanks</p>
  
  <pre><code>keyword=pig
  page_nr=3
  wget -O search_result http://www.youtube.com/results?search_query=${keyword}&amp;page=${page_nr} &gt; templog
  </code></pre>