From lists.redhat at samsharpe.net Fri Jun 5 20:32:38 2015 Content-Type: multipart/mixed; boundary="===============6015157202984261171==" MIME-Version: 1.0 From: Sam Sharpe To: users at lists.fedoraproject.org Subject: Re: text to html Date: Sat, 03 Jul 2010 15:20:08 +0100 Message-ID: In-Reply-To: 1278163003.2372.2.camel@rodolfoap.rap.net --===============6015157202984261171== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 3 July 2010 14:16, Rodolfo Alcazar Portillo wrote: > On Sat, 2010-07-03 at 11:07 +0200, Jozsi Avadkan wrote: >> input: >> http://pastebin.com/raw.php?i=3DMqPXZwc3 >> >> output: >> http://pastebin.com/raw.php?i=3D8QCkp4yv >> >> it will be a long day.. :D > > Not likely. Obviously, you must replace lynx with cat . > > lynx -dump http://pastebin.com/raw.php?i=3DMqPXZwc3|sed -r 's/([^\/]*)\/(= .*)\.html/
\1<\/font>
\n\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 "
\n" before everything except the initial header line with the tag. 2) It repeats the header above each link. Jozsi wanted the header only above the first occurrence to group the links. -- = Sam --===============6015157202984261171==--