Re: <link> not clickable from text document

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux