O'Reilly logo

Linux Shell Scripting Cookbook by Sarath Lakshman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Downloading a web page as formatted plain text

Web pages are HTML pages containing a collection of HTML tags along with other elements, such as JavaScript, CSS, and so on. But the HTML tags define the base of a web page. We may need to parse the data in a web page while looking for specific content, and this is something Bash scripting can help us with. When we download a web page, we receive an HTML file. In order to view formatted data, it should be viewed in a web browser. However, in most of the circumstances, parsing a formatted text document will be easier than parsing HTML data. Therefore, if we can get a text file with formatted text similar to the web page seen on the web browser, it is more useful and it saves a lot of effort required ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required