Article View: es.comp.os.linux.programacion
Article #7670Re: sed y reempazo de texto
From: Pacolinx
Date: Wed, 05 Feb 2003 22:59
Date: Wed, 05 Feb 2003 22:59
40 lines
2310 bytes
2310 bytes
Pacolinx tenia ganas de escribir y dijo asi:
>
> 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
>
Solucionado:
sed -e 's:/hdd/pagina/::g'
Web q lo explica:
pruebahttp://bulmalug.net/pdabody.php?nIdNoticia=1281.htm
--
|||
(o o)
(_)
--oOOo-oOOo--------------------------------------------------------
Paco. pacolinux ARROBA inicia PUNTO com http://www.iespana.es/pacodebian
Valencia ( EspaοΏ½a ) .
Linux Reg.User: #287.309. Linux machine: #168.816. http://counter.li.org/
Debian Sid (2.4.20). AMD K6-II. 450 RAM 320
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org
iEkEIBECAAkFAjvxD8cCHQIACgkQdJh7olYT17TOvQCeNcsAPeIuML486fkL5Na984iM4jAAniajKMjXNoaJvxjAIu40/IV7loFp=MjXB
-----END PGP PUBLIC KEY BLOCK---------------------------------------
Technical Details
Message-ID:
<9kh8h-8s1.ln1@paldaria.dsland.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.vmunix.org!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!nsnmpen2-lo.nuria.telefonica-data.net!paldaria.dsland.org!newsReferences:
<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 15:15:08 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.vmunix.org!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!nsnmpen2-lo.nuria.telefonica-data.net!paldaria.dsland.org!news From: Pacolinx <pacolinux@BORRAMEinicia.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: sed y reempazo de texto Date: Wed, 05 Feb 2003 23:59:50 +0100 Organization: Telefonica Data Espagna Lines: 43 Message-ID: <9kh8h-8s1.ln1@paldaria.dsland.org> References: <4pf8h-fj1.ln1@paldaria.dsland.org> Reply-To: pacolinux@BORRAMEinicia.es NNTP-Posting-Host: 217-127-45-237.uc.nombres.ttd.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Trace: nsnmpen2-gest.nuria.telefonica-data.net 1044486907 6420 217.127.45.237 (5 Feb 2003 23:15:07 GMT) X-Complaints-To: usenet@nsnmpen2-gest.nuria.telefonica-data.net NNTP-Posting-Date: Wed, 5 Feb 2003 23:15:07 +0000 (UTC) User-Agent: KNode/0.7.2