Article View: es.comp.os.linux.programacion
Article #343Problemas con sed
From: ABSOLUT
Date: Thu, 01 Jan 2009 19:08
Date: Thu, 01 Jan 2009 19:08
45 lines
3345 bytes
3345 bytes
Hola a todos, Tengo un fichero de texto con un codigo html todo en una misma linea, os pongo un trozo: .............. <div align="left"></div><table border=0 cellpadding=0 cellspacing=0 width=100% class="t bb"><tr><td nowrap></td>< td align=right nowrap><font size=-1>Resultados <b>1</b> - <b>10</b> de <b>hermas bolena</b> (<b>0.07</b> segundo s) </font></td></tr></table><div id=res><p><font color="#cc0000" class=p>Quiz�s quiso decir: </font><a href= "/custom?hl=es&client=google-coop-np&cof=FORID:11%3BAH:left %3BL:http://www.google.com/coop/intl/es/images /custom_search_sm.gif%3BLH:65%3BLP:1%3BBGC:%23f7f8fc%3BVLC: %23663399%3BGALT:%23009900%3BDIV:%23a7a6a6%3B&ad=w 9&cx=003284578463992023034:lraatm7pya0&adkw=AELymgWpiI3ffTqEb_xlTxgtMMwdNRsUtwR7V- b8kzLEoC-I4U1M5pO7feaDi -o3sTOFC2M4zgBSn2HFxiCVWbgmUplbWBdDG2yFNUIDeJ5AKwTu- G5c9T4&oe=ISO-8859-1&sa=X&oi=spell&resnum=0&a mp;ct=result&cd=1&q=hermanas+bolena&spell=1" class=p><b><i>hermanas</i></b> bolena</a> <br ><div><ol style="margin:0;padding:0;list-style:none"><table align=right><tr><td align=left><a href="http://www.go ogle.com/coop/cse/?hl=es" target=_top><img src="/images/ poweredby_transparent/poweredby_FFFFFF.gif" alt=Google bo rder=0></a><br><span style="font-size:9px;font- weight:bolder;color:#000000"> B�squeda personalizada</span></ td></tr></table><li><div class=g><h2 class=r><a href="http:// www.elseptimoarte.net/peliculas/the-other-boleyn-gir l-1121.html" target=_top class=l>Las <em>hermanas Bolena</em> (2008) - El S�ptimo Arte</a></h2><table border=0 ce llpadding=0 cellspacing=0><tr><td class="j"><div class=std>16 Nov 2007 <b>...</b> Sinopsis de la pel�cula Las <em...... Quiero sacar unas urls que estan en el fichero y me he dado cuenta que coinciden en un patron. Todas comienzan por <a href="http...... y finalizan con ". Pero no se como hacerlo... lo he intentado con sed pero al estar en una linea no se muy bien como realizarlo Alguna ayduda? Gracias
Technical Details
Message-ID:
<195b7bbf-d5b3-43a9-9d01-996fc03a3726@o4g2000pra.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!o4g2000pra.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f86c8,3f9e8ae1c57984bc,start X-Google-Attributes: gidf86c8,domainid0,public,usenet X-Google-Language: SPANISH,UTF8 Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!o4g2000pra.googlegroups.com!not-for-mail From: ABSOLUT <davidtuti@gmail.com> Newsgroups: es.comp.os.linux.programacion Subject: Problemas con sed Date: Thu, 1 Jan 2009 11:08:11 -0800 (PST) Organization: http://groups.google.com Lines: 45 Message-ID: <195b7bbf-d5b3-43a9-9d01-996fc03a3726@o4g2000pra.googlegroups.com> NNTP-Posting-Host: 87.220.178.233 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1230836891 10131 127.0.0.1 (1 Jan 2009 19:08:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 1 Jan 2009 19:08:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o4g2000pra.googlegroups.com; posting-host=87.220.178.233; posting-account=j17dBAoAAAA39KtezIzZ77RgDg32faYV User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe)