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
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