bash command to convert html page to a text file

前端 未结 10 1186
醉梦人生
醉梦人生 2020-12-09 07:38

I am a beginner to linux. Would you please help me how to convert an html page to a text file. the text file will remove any images and links from the webpage. I want to use

10条回答
  •  星月不相逢
    2020-12-09 08:17

    On OSX you can use the command line tool called textutil to batch convert html files to txt format:

    textutil -convert txt *.html
    

提交回复
热议问题