troubleshooting Question

bash - extracting words

Avatar of rares_dumitrescu
rares_dumitrescu asked on
Shell Scripting
2 Comments1 Solution775 ViewsLast Modified:
hello
i have a document, and i want to extract some web adresses
the document is named bla.html
and he has text like this:

        <td align="left"><a name="neogenro"></a><a href="http://stat.trafic.ro/stat/neogenro">neogen.ro - Portalul numarul 1 in Romania. Prieteni, bani, informatii, distractie, dating. e-Volueaza!</a><br><small title="Pozitia in categorie"><a target="_blank"  href="http://rd.trafic.ro/?u=www.neogen.ro">www.neogen.ro</a> - <a href='/top/cautare-portal/pagina1.html#neogenro'>Cautare/Portal</a> - <a href='/top/cautare-portal/pagina1.html#neogenro'>Locul 1</a></small></td>
        <td align="left"><a name="gazetasporturilorro"></a><a href="http://stat.trafic.ro/stat/gazetasporturilorro">Gazeta Sporturilor - cea mai buna echipa din Romania</a><br><small title="Pozitia in categorie"><a target="_blank"  href="http://rd.trafic.ro/?u=gsp.ro">gsp.ro</a> - <a href='/top/stiri-massmedia/pagina1.html#gazetasporturilorro'>Stiri/Massmedia</a> - <a href='/top/stiri-massmedia/pagina1.html#gazetasporturilorro'>Locul 1</a></small></td>
        <td align="left"><a name="prosportro"></a><a href="http://stat.trafic.ro/stat/prosportro">Prosport - Cel mai complet si dinamic site de sport din Romania. Stiri. Chat. Comentarii live.</a><br><small title="Pozitia in categorie"><a target="_blank"  href="http://rd.trafic.ro/?u=www.prosport.ro">gsp.ro</a> - <a href='/top/stiri-massmedia/pagina1.html#prosportro'>Stiri/Massmedia</a> - <a href='/top/stiri-massmedia/pagina1.html#prosportro'>Locul 2</a></small></td>

i need to extract just the web adress
example: i need from this file www.neogen.ro gsp.ro and gsp.ro

any ideea ?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros