text to html

Erik Gustafson gustafson.erik at gmail.com
Sat Jul 3 09:53:25 UTC 2010


On Sat, Jul 3, 2010 at 11:07 AM, Jozsi Avadkan <jozsi.avadkan at gmail.com> wrote:
> input:
> http://pastebin.com/raw.php?i=MqPXZwc3
>
> output:
> http://pastebin.com/raw.php?i=8QCkp4yv
>
> it will be a long day.. :D
>
> could someone please help with it?
>
> i have to make a "one liner" that get's the input, and gives the
> mentioned output.


Sed version:
# cat raw_input | sed 's#\(.*\)/\(.*\)#<br><font size=4>\1</font><br> \
<a href="&">\2</a>'#

 /Erik


More information about the freebsd-questions mailing list