🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: sed y reempazo de texto

#7666
From: catactttc
Date: Wed, 05 Feb 2003 22:40
24 lines
1526 bytes
In article <4pf8h-fj1.ln1@paldaria.dsland.org>, Pacolinx wrote:
> 
> Desearia reemplazar del fichero.htm 
> La historia es q al subir la pagina no me funcionan las imagenes
> ya q debo quitar el path.
> 
> todo lo que aparece con: /hdd/pagina/x.png
> y que me quede solo x.png
> Siendo x, varios nombres
> 
> 
> Estaria bien asi?
> 
> sed -e 's/hdd/pagina/ /< fichero.htm
> 

No, ser�a algo as�:

sed "s|/hdd/pagina/||g" fichero.htm > fichero.corregido.html


-- 
Grupo de usuarios de Mandrake:
<http://www.mandrakeusers.org>
Technical Details
Message-ID: <b1s3tp$cls$1@peque.uv.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!news.uv.es!not-for-mail
References: <4pf8h-fj1.ln1@paldaria.dsland.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,4d5cb4eb9f009989
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-02-05 14:48:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!news.uv.es!not-for-mail
From: catactttc <catactttc@nospammail.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: sed y reempazo de texto
Date: Wed, 5 Feb 2003 22:40:59 +0000 (UTC)
Organization: Universitat de Valencia
Lines: 24
Distribution: es
Message-ID: <b1s3tp$cls$1@peque.uv.es>
References: <4pf8h-fj1.ln1@paldaria.dsland.org>
NNTP-Posting-Host: 213-98-236-51.uc.nombres.ttd.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: peque.uv.es 1044484859 12988 213.98.236.51 (5 Feb 2003 22:40:59 GMT)
X-Complaints-To: newsmanager@uv.es
NNTP-Posting-Date: Wed, 5 Feb 2003 22:40:59 +0000 (UTC)
User-Agent: slrn/0.9.7.4 (Linux)