I am trying to extract some info from a web page. Imagine you have a name given to you (Northcentral Siberia, Russia) and want to extract whole line containing this name from a web page. To handle this, I downloaded the web page (https://geofon.gfz-potsdam.de/eqinfo/list.php
) into a text file using lynx command (lynx --dump "https://geofon.gfz-potsdam.de/eqinfo/list.php" > text.txt
) and tried to grep the line containing the name "Northcentral Siberia, Russia". the following line shows the info in the web page which all are in a row:
2018-05-27 04:27:17 4.8 60.07°N 128.42°E 10 A Northcentral Siberia, Russia
But when I downloaded the web page into a text file the above line breaks into two lines as follows:
2018-05-27 04:27:17 4.8 60.07°N 128.42°E 10 A Northcentral
Siberia, Russia
In this case, if I try to extract this line using its full name (Northcentral Siberia, Russia) and grep, it will fail. How can I deal with that?