skip to Main Content

How to extract surrounding html with bash?

I would like to read the href url that is stored next to the <td>blue</td> element: <html> <body> <table> <tr> <td> <a href="localhost/url1">url1</a> </td> <td>blue</td> </tr> <tr> <td> <a href="localhost/url2">url2</a> </td> <td>green</td> </tr> </table> </body> </html> I first tried to…

VIEW QUESTION
Back To Top
Search