0

This question already has an answer here:

How to get only the content for web page what I see in browser... I don't want the headers and any HTML tag.. exp- http://www.linfo.org/cat.html.. I want only the content.. Please help

marked as duplicate by muru, Stephen Rauch, Jeff Schaller, jasonwryan, Scott Aug 21 '17 at 4:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

If you just want to dump the page in printable form, that's doable with a text-browser (such as lynx, w3m, elinks). Those have a "-dump" option.

Here's the beginning of that page with "lynx -dump":

   [1]LINFO

                               The cat Command

   cat is one of the most frequently used [2]commands on [3]Unix-like
   [4]operating systems. It has three related functions with regard to
   text files: displaying them, combining copies of them and creating new
   ones.

   cat's general syntax is

     cat [options] [filenames] [-] [filenames]

   The square brackets indicate that the enclosed items are optional.

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