Links aus HTML-Dateien extrahieren

Nico Golde nico at ngolde.de
Tue Sep 5 20:03:44 CEST 2006


Hallo Siegfried,

* Siegfried Peter <lug at si-peter.de> [2006-09-05 18:48]:
> Hallo Liste,
> Ich würde gern die Links zu bestimmten Servern aus diversen HTML-Dateien
> extrahieren und in eine zweite Datei schreiben.

[...]
Ich würd jetzt spontan irgendwie sowas machen:
grep 'a href' foo | sed -e 's/.*href="\(.*\)">.*/\1/'
Vielleicht noch mit Groß- und Kleinschreibung..
Gruß Nico
-- 
Nico Golde - JAB: nion at jabber.ccc.de | GPG: 0x73647CFF
http://www.ngolde.de | http://nion.modprobe.de/blog/
Forget about that mouse with 3/4/5 buttons -
gimme a keyboard with 103/104/105 keys!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20060905/4215932a/attachment.sig>


More information about the Linux mailing list