Thursday, May 2, 2024
23
rated 0 times [  23] [ 0]  / answers: 1 / hits: 124066  / 3 Years ago, sun, october 17, 2021, 4:10:46

I use catdoc to preview Word documents from the command line. Is there something similar for HTML?



In other words I would like to do cathtml Webpage.html | less and get more or less a man page look output.


More From » command-line

 Answers
4

You can use html2text to look into an HTML document from command line.



sudo apt-get install html2text
html2text Webpage.html | less


but not exactly a look similar to man pages, it depends on the html input, of course.


[#43746] Monday, October 18, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oileweaty

Total Points: 337
Total Questions: 108
Total Answers: 105

Location: Western Sahara
Member since Mon, May 3, 2021
3 Years ago
oileweaty questions
Thu, Jul 1, 21, 01:57, 3 Years ago
Wed, Nov 24, 21, 11:48, 2 Years ago
Sat, May 14, 22, 00:50, 2 Years ago
;