πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #352

Re: Problemas con sed

#352
From: ABSOLUT
Date: Mon, 05 Jan 2009 09:19
59 lines
4504 bytes
Muchas gracias por vuestra ayuda pero me asalta otra duda que como os
veo profesionales del sed lo mismo me podΓ©is solucionar.

Si tengo un texto html como mas abajo os pongo y quiero sacar lo de
las X de esta cadena:
....window.open('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx').....

Yo hago:

sed "s/.*window\.open('\([^']*\)'.*$/\1/g" fichero.html

Pero no me lo hace :-(
Sabeis porque puede ser.?

<tr><td class=lista align=left width=100%><table border=0
cellspacing=0 cellpadding=0 align=left width=90%><tr><td width=60
style="b
ackground-image: url(./style/base/line_a.gif); background-repeat: no-
repeat; background-position:top right; width=60px; height:4px;"
></td><td width=75% style="background-image:url(./style/base/line_b.gif); background-repeat: repeat-x; height:4px;"></td><td width=6
0 style="background-image: url(./style/base/line_c.gif); background-
repeat: no-repeat; height:4px;"></td></tr></table></td></tr>
<tr><td class=lista align=left><table align=left border=0
cellspacing=0 cellpadding=0 width=70%><tr><td class=lista align=left>
<b>Options: </b></td>
<td class=lista align=left title="Bajar:&nbsp;Austin Powers -
Misterioso agente internacional [DVDRip][DIVX][mp3][Es][1997] "><table
 border=0 cellspacing=0 cellpadding=0 align=left onClick="window.open
('download.php?id=7f5f11d0c4a8ccebe59342e29de2c8cf7e5096e3&f=Au
stin+Powers+-+Misterioso+agente+internacional+%5BDVDRip%5D%5BDIVX%5D
%5Bmp3%5D%5BEs%5D%5B1997%5D+.torrent','_self')" style="cursor:po
inter; cursor:hand;"><tr><td style="background-image: url(images/
download.gif); background-repeat: no-repeat; width:17px; height:17p
x;" align=center></td><td>&nbsp;Descargar</td></tr></table></td>
<td class=lista align=left title="Details for:&nbsp;Austin Powers -
Misterioso agente internacional [DVDRip][DIVX][mp3][Es][1997] ">
<table border=0 cellspacing=0 cellpadding=0 align=left
onClick="javascript:popdetails('details.php?
id=7f5f11d0c4a8ccebe59342e29de2c8
cf7e5096e3&amp;hit=1');" style="cursor:pointer; cursor:hand;"><tr><td
style="background-image: url(images/torrent_name.gif); backgro
und-repeat: no-repeat; width:17px; height:17px;" align=center></
td><td>&nbsp;Detalles</td></tr></table></td>
<td class=lista align=left
title="Add&nbsp;to&nbsp;WishList:&nbsp;Austin Powers - Misterioso
agente internacional [DVDRip][DIVX][mp3
][Es][1997] "><table border=0 cellspacing=0 cellpadding=0 align=left
onClick="window.open('wishlist.php?do=add&amp;torrent_id=7f5f11
d0c4a8ccebe59342e29de2c8cf7e5096e3','_self')" style="cursor:pointer;
cursor:hand;"><tr><td style="background-image: url(images/wishl
ist.gif); background-repeat: no-repeat; width:17px; height:17px;"
align=center></td><td>&nbsp;Aqadir a tu lista de espera</td></tr><
/table></td>

Muchas gracias y un saludo,
Technical Details
Message-ID: <a489375d-14b1-495d-851d-f71227a23a89@p29g2000vbn.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!p29g2000vbn.googlegroups.com!not-for-mail
References: <195b7bbf-d5b3-43a9-9d01-996fc03a3726@o4g2000pra.googlegroups.com> <6763kyimbc.fsf@poseidon.eteo.mondragon.edu> <671vvmim8m.fsf@poseidon.eteo.mondragon.edu> <d6e487bd-2646-4715-811a-6fec3da796f3@n33g2000pri.googlegroups.com> <gjl88d$473$1@cagarruta.escomposlinux.org> <gjl8c9$473$2@cagarruta.escomposlinux.org> <67tz8ggxna.fsf@poseidon.eteo.mondragon.edu> <gjo5d7$ado$1@cagarruta.escomposlinux.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,3f9e8ae1c57984bc
X-Google-Attributes: gidf86c8,domainid0,public,usenet
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!p29g2000vbn.googlegroups.com!not-for-mail
From: ABSOLUT <davidtuti@gmail.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Problemas con sed
Date: Mon, 5 Jan 2009 01:19:54 -0800 (PST)
Organization: http://groups.google.com
Lines: 62
Message-ID: <a489375d-14b1-495d-851d-f71227a23a89@p29g2000vbn.googlegroups.com>
References: <195b7bbf-d5b3-43a9-9d01-996fc03a3726@o4g2000pra.googlegroups.com> 
 <6763kyimbc.fsf@poseidon.eteo.mondragon.edu> <671vvmim8m.fsf@poseidon.eteo.mondragon.edu>
 <d6e487bd-2646-4715-811a-6fec3da796f3@n33g2000pri.googlegroups.com>
 <gjl88d$473$1@cagarruta.escomposlinux.org> <gjl8c9$473$2@cagarruta.escomposlinux.org>
 <67tz8ggxna.fsf@poseidon.eteo.mondragon.edu> <gjo5d7$ado$1@cagarruta.escomposlinux.org>
NNTP-Posting-Host: 213.0.43.189
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1231147194 19399 127.0.0.1 (5 Jan 2009 09:19:54 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 5 Jan 2009 09:19:54 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: p29g2000vbn.googlegroups.com; posting-host=213.0.43.189; 
 posting-account=j17dBAoAAAA39KtezIzZ77RgDg32faYV
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
 InfoPath.1),gzip(gfe),gzip(gfe)