On 3 July 2010 14:16, Rodolfo Alcazar Portillo <nospaze(a)gmail.com> wrote:
On Sat, 2010-07-03 at 11:07 +0200, Jozsi Avadkan wrote:
> input:
>
http://pastebin.com/raw.php?i=MqPXZwc3
>
> output:
>
http://pastebin.com/raw.php?i=8QCkp4yv
>
> it will be a long day.. :D
Not likely. Obviously, you must replace lynx with cat <file>.
lynx -dump
http://pastebin.com/raw.php?i=MqPXZwc3|sed -r
's/([^\/]*)\/(.*)\.html/<br><font size=4>\1<\/font><br>\n<a
href="\1\/\2.html">\2<\/a> |/g'
I'm afraid that's a fail - it doesn't match the desired output.
It's quite cool, however:
1) It needs to place a "<br>\n" before everything except the initial
header line with the <font> tag.
2) It repeats the header above each link. Jozsi wanted the header only
above the first occurrence to group the links.
--
Sam