In this post is shown how to pipe curl output to lynx. How can get the same with w3m?

I mean something like:

curl https://www.google.it | w3m


curl https://www.google.it someFile.html && lynx someFile.html
  • 1
    I haven't tried it to be sure, but the manual lists w3m -T text/html – Fox Jun 26 '17 at 18:36

w3m is a pager. So to force HTML interpretation of text on stdin, you need to ask for it explicitly:

curl https://www.google.it | w3m -T text/html
| improve this answer | |
  • 5
    You can also add the -dump flag to skip the pager and send the output to stdout or pipe it to something else. – ewatt Feb 13 '19 at 22:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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