Re: text to html

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

 



On 3 July 2010 14:16, Rodolfo Alcazar Portillo <nospaze@xxxxxxxxx> 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
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


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

  Powered by Linux