I need to extract data from a html file in bash

Hi,

I need to extract data from a webpage and get some specific text out. I am able to fetch the url using wget and I have the unique start and end string which can be used as markers for extracting the data. I just don’t know what bash command to use to use those marker strings and fetch the data in between.

In php I would have used substr function or something but in bash I don’t know what to do.

Can anyone help me with it ?

Thanks.

1 Like

Why can’t this be done in php?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.