<link> not clickable from text document

Alexander Dalloz ad+lists at uni-x.org
Sun Jul 31 13:57:44 UTC 2005


Am So, den 31.07.2005 schrieb THUFIR HAWAT um 9:31:

> I have many, many, many links like:
> 
> http://www.foo.com/
> http://www.bar.com/
> 
> with one per line, in a text file.  is there a simple way to convert that to

> <a href="http://www.foo.com/">foo</a>

> Thufir

sed 's|^http://\(.*\)/|<a href="\1">\1</a>|g; s|href="|href="http://|g'
linklist.txt > clicklist.txt

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 15:53:57 up 15 days, 20:26, load average: 0.42, 0.16, 0.11 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050731/0319286d/attachment-0001.sig>


More information about the fedora-list mailing list