Why doesn't this work?:
wget -q -U Mozilla "http://rss.slashdot.org/Slashdot/slashdot" -O - | tr '\n' ' '

p.s.: and under openwrt 10.03:
# wget "http://slashdot.org/" -O -
Connecting to slashdot.org (216.34.181.45:80)
wget: bad header line: slash_LOG_DATA: shtml
$

link|improve this question

62% accept rate
2  
The tr '\n' ' ' has nothing to do with it. wget is getting an error when trying to download the file. – Wuffers Jan 22 '11 at 16:54
wget -q -U Mozilla "http://slashdot.org/" -O - | tr '\n' ' ' works perfectly for me – Nifle Jan 23 '11 at 10:44
What error does wget -q -U Mozilla "http://rss.slashdot.org/Slashdot/slashdot" -O - give? What is your expected result of doing that whole command with tr and what do you get instead? – Tom Wijsman Jan 24 '11 at 22:06
feedback

1 Answer

wget "http://slashdot.org/" -O -

 

HTTP/1.1 200 OK  
Server: Apache/1.3.42 (Unix) mod_perl/1.31  
SLASH_LOG_DATA: shtml  
...

wget performs bad on the third line of the header, seems like a bug to me. I would suggest reporting it.

Furthermore, I would suspect that site to act weird as they are using old standards...

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.